GET

https://www.googleapis.com/maps/api/distanceMatrix/json

The Distance Matrix API is a service that provides travel distance and time for a matrix of origins and destinations. The API returns information based on the recommended route between start and end points, as calculated by the Google Maps API, and consists of rows containing duration and distance values for each pair.

key
string
required
origins
array
required
destinations
array
required
arrival_time
number
departure_time
number
avoid
string
units
string
metric
language
string
en
mode
string
Select value
region
string
en
traffic_model
string
best_guess
transit_mode
string
transit_routing_preference
string
less_walking