Calculates a matrix of M:N, M:1 or 1:N route summaries between given points of interest (POIs) using the HERE 'Routing' API.
Various transport modes and traffic information at a provided timestamp are supported.
The requested matrix is split into (sub-)matrices of dimension 15x100 to use the
maximum matrix size per request and thereby minimize the number of overall needed requests.
The result is one route summary matrix, that fits the order of the provided POIs:
route_matrix( origin, destination = origin, datetime = Sys.time(), type = "fastest", mode = "car", traffic = FALSE, search_range = 99999999, attribute = c("distance", "traveltime"), url_only = FALSE )
character, set the routing type:
character, set the transport mode:
boolean, use real-time traffic or prediction in routing (
numeric, value in meters to limit the search radius in the route generation (
character, attributes to be calculated on the routes:
boolean, only return the generated URLs (
data.frame, which is an edge list containing the requested M:N route combinations.