Sign in

Distance matrix (JSON)

documented

Return distance and duration between origins and destinations in JSON.

GET /maps/api/distancematrix/jsonDistance Matrix APIno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://maps.googleapis.com/maps/api/distancematrix/json?origins={{origins}}&destinations={{destinations}}&mode={{mode}}&units={{units}}&language={{language}}&key={{MAPS_API_KEY}}" \
  -X GET \
  -H "Accept: application/json" \
  -H "Content-Type: application/json"