isoline {hereR} | R Documentation |
HERE Isoline Routing API: Calculate Isoline
Description
Calcuates isolines (POLYGON
or MULTIPOLYGON
) using the HERE 'Isoline Routing' API
that connect the end points of all routes leaving from defined centers (POIs) with either
a specified length, a specified travel time or consumption (only the default E-car available).
Usage
isoline(
poi,
datetime = Sys.time(),
arrival = FALSE,
range = seq(5, 30, 5) * 60,
range_type = "time",
routing_mode = "fast",
transport_mode = "car",
traffic = TRUE,
optimize = "balanced",
consumption_model = NULL,
aggregate = FALSE,
url_only = FALSE
)
Arguments
poi |
|
datetime |
|
arrival |
boolean, are the provided Points of Interest (POIs) the origin or destination locations ( |
range |
numeric, a vector of type |
range_type |
character, unit of the isolines: |
routing_mode |
character, set the routing mode: |
transport_mode |
character, set the transport mode: |
traffic |
boolean, use real-time traffic or prediction in routing ( |
optimize |
character, specifies how isoline calculation is optimized: |
consumption_model |
character, specify the consumption model of the vehicle ( |
aggregate |
boolean, aggregate (with function |
url_only |
boolean, only return the generated URLs ( |
Value
An sf
object containing the requested isolines.
References
Examples
# Provide an API Key for a HERE project
set_key("<YOUR API KEY>")
# Isochrone for 5, 10, 15, 20, 25 and 30 minutes driving time
isolines <- isoline(
poi = poi,
range = seq(5, 30, 5) * 60,
url_only = TRUE
)