Request a Matrix of Routes
To calculate a matrix of routes between M x N locations, use calculatematrix
with the following parameters:
- your authentication credentials,
apiKey
orapp_id
andapp_code
if you are using the app_id/app_code authentication (see the Identity & Access Management Developer Guide) - N starts (
start0
tostartN
) and M destinations (destination0
todestinationM
) waypoints -
mode
, which determines how the routes in the matrix are calculated - representation options to control the response contents
This example requests the matrix calculation of the fastest
routes between one start point and two destinations for a car
without optimizing the routes for current traffic conditions. By default route summaries will be presented in the output, containing only costFactor
value.
https://matrix.route.ls.hereapi.com/routing/7.2/calculatematrix.json
?apiKey={YOUR_API_KEY}
&start0=52.5,13.4
&destination0=52.5,13.43
&destination1=52.5,13.46
&mode=fastest;car;traffic:disabled