Google Maps Platform · Example Payload

Google Maps Getdirections Example

EnvironmentGeocodingGeolocationMapsNavigationPlacesRoutingSolar

Google Maps Getdirections Example is an example object payload from Google Maps Platform, with 6 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationIdmethodpathsummaryrequestExamplesresponseExamples

Example Payload

Raw ↑
{
  "operationId": "getDirections",
  "method": "GET",
  "path": "/directions/json",
  "summary": "Get Directions Between Two or More Locations",
  "requestExamples": [],
  "responseExamples": [
    {
      "status": "200",
      "contentType": "application/json",
      "name": "Getdirections200Example",
      "example": {
        "status": "OK",
        "routes": [
          {
            "summary": "example_value",
            "legs": {},
            "waypoint_order": {},
            "copyrights": "example_value",
            "warnings": {}
          }
        ],
        "geocoded_waypoints": [
          {
            "geocoder_status": "OK",
            "place_id": "500123",
            "types": {},
            "partial_match": true
          }
        ],
        "error_message": "example_value"
      }
    }
  ]
}