Tuesday, May 12, 2020

Google Map Platform: Distance Matrix API

The Distance Matrix API is a service that provides travel distance and time for a matrix of origins and destinations

Sample request and response
You access the Distance Matrix API through an HTTP interface, with requests constructed as a URL string, using origins and destinations, along with your API key.

The following example requests the distance matrix data between Washington, DC and New York City, NY, in JSON format:

https://maps.googleapis.com/maps/api/distancematrix/json?units=imperial&origins=Washington,DC&destinations=New+York+City,NY&key


Information from: https://developers.google.com/maps/documentation/distance-matrix/intro