powered by
Calculates route geometries (LINESTRING) between given pairs of points using the HERE 'Intermodal Routing' API.
LINESTRING
intermodal_route( origin, destination, datetime = Sys.time(), results = 3, transfers = -1, url_only = FALSE )
An sf object containing the requested intermodal routes.
sf
sf object, the origin locations of geometry type POINT.
POINT
sf object, the destination locations of geometry type POINT.
POSIXct object, datetime for the departure (default = Sys.time()).
POSIXct
default = Sys.time()
numeric, maximum number of suggested route alternatives (Valid range: 1 and 7, default = 3).
default = 3
numeric, maximum number of transfers allowed per route (Valid range: -1 and 6, default = -1).
default = -1
boolean, only return the generated URLs (default = FALSE)?
default = FALSE
HERE Intermodal Routing API: Routes
# Provide an API Key for a HERE project set_key("") # Intermodal routing routes <- intermodal_route( origin = poi[1:3, ], destination = poi[4:6, ], url_only = TRUE )
Run the code above in your browser using DataLab