The Distance Matrix API is an HTTP API for calculating the distance and duration of routes. The Distance Matrix calculates all possible combinations for the origin and destination points. For example, you can use the API to find the restaurant that is closest to the point of origin.

The calculated travel time for a section always accounts for current traffic conditions and the traffic forecast.


  • To send API requests, get an API key.
  • The maximum size of the matrix is 100 items. To generate more complex matrixes, divide them into multiple queries.
  • Maximum requests per second (RPS): 5.
  • You get charged for each combination of origin and destination point in a request. E.g. request with 3 origins and 5 destinations has 15 combinations.