Creates a new ORS instance object. This R6 class is typically
constructed by ors_instance.
This object represents a remote instance, i.e. an existing server like the public API.
Super class
rors::ORSInstance -> ORSRemote
Methods
Method new()
Initialize the remote ORS instance.
Usage
ORSRemote$new(server, token = FALSE)Arguments
server[character]URL of a server that accepts OpenRouteService requests. This can be a URL to a local or a remote server. The official public API can be accessed using the shortcuts
"public"or"pub". Keep in mind that the public API is rate-restricted and requests are automatically throttled to 40 requests per minute. Routing functions will be slow for larger datasets.token[logical]Whether
serverrequires authorization over a token. ORS tokens are stored in theORS_TOKENenvironment variable. Defaults toFALSE. Ifserveris the public API,tokenis set toTRUE.
