Distance Matrix

Building requests for the Distance Matrix API

Before you can start using the API, you will need to obtain the authentication token.

The following headers will be required, where the word token must be replaced by the token obtained in the authentication process:

--header 'Content-Type: application/json' \
--header 'Authorization: Bearer token'

All the parameters to solve the distance matrix calculation will be sent in body .

The Distance Matrix API works asynchronously. In other words, an ID will be returned when the problem is sent. With this ID you can check the response in the future or the processing status.

The API has the following endpoints, where the term {{matrixId}} must be replaced by the ID of the problem to be consulted:

Note: Solution IDs are available for consultation for a period of 7 days.