Routing API Developer's Guide

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, app_id and app_code (see Acquiring Credentials)
  • N starts (start0 to startN) and M destinations (destination0 to destinationM) 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.