GoogleMapsDistanceMatrix

FREE
By stefan.skliarov
Updated 7 months ago
Mapping
7/10
Popularity Score
217ms
Latency
100%
Success Rate

GoogleMapsDistanceMatrix API Documentation

Calculate travel distance and time between destinations.

View API Details
POSTgetBicyclingDistanceMatrix
POSTgetDrivingDistanceMatrix
POSTgetTransitDistanceMatrix
POSTgetWalkingDistanceMatrix
POSTgetBicyclingDistanceMatrix

Requests distance calculation for bicycling via bicycle paths & preferred streets (where available)

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
originsLIST
REQUIREDThe starting point for calculating travel distance and time. You can supply one or more locations as array, in the form of an address, latitude/longitude coordinates, or a place ID
destinationsLIST
REQUIREDOne or more locations to use as the finishing point for calculating travel distance and time. The options for the destinations parameter are the same as for the origins parameter, described above
apiKeyCREDENTIALS
REQUIREDThe api key obtained from Google Developers Console.
Optional Parameters
languageSELECT
OPTIONALThe language in which to return results.
unitsSELECT
OPTIONAL Specifies the unit system to use when expressing distance as text. Possible values are: metric | imperial
Code Snippet
Install SDK
Response ExampleSchema

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication