Calculates 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).
isoline(
poi,
datetime = Sys.time(),
arrival = FALSE,
range = seq(5, 30, 5) * 60,
range_type = "time",
routing_mode = "fast",
transport_mode = "car",
speed_limit = 0,
traffic = TRUE,
optimize = "balanced",
consumption_model = NULL,
aggregate = FALSE,
url_only = FALSE
)An sf object containing the requested isolines.
sf object, Points of Interest (POIs) of geometry type POINT.
POSIXct object, datetime for the departure (or arrival if arrival = TRUE).
boolean, are the provided Points of Interest (POIs) the origin or destination locations (default = FALSE)?
numeric, a vector of type integer containing the breaks for the generation of the isolines: (1) time in seconds; (2) distance in meters; (3) consumption in Wh.
character, unit of the isolines: "distance", "time" or "consumption".
character, set the routing mode: "fast" or "short".
character, set the transport mode: "car", "pedestrian" or "truck".
numeric, sets the maximum allowed speed in meters per second (default = 0). For "pedestrian" mode, the value must be between 0.5 and 2 m/s. For vehicle-based modes (e.g. "car" or "truck"), the value must be between 1 and 70 m/s.
boolean, use real-time traffic or prediction in routing (default = TRUE)? If no traffic is selected, the datetime is set to "any" and the request is processed independently from time.
character, specifies how isoline calculation is optimized: "balanced", "quality" or "performance" (default = "balanced").
character, specify the consumption model of the vehicle (default = NULL an average electric car is set).
boolean, aggregate (with function min) and intersect the isolines from geometry type POLYGON to geometry type MULTIPOLYGON (default = FALSE)?
boolean, only return the generated URLs (default = FALSE)?
# Provide an API Key for a HERE project
set_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
)
Run the code above in your browser using DataLab