{
  "opencollection": "1.0.0",
  "info": {
    "name": "Google Maps Autocomplete Directions API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "key",
      "value": "{{key}}",
      "placement": "query"
    }
  },
  "items": [
    {
      "info": {
        "name": "Directions",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Directions Between Two or More Locations",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://maps.googleapis.com/maps/api/directions/json",
            "params": [
              {
                "name": "origin",
                "value": "Toronto, ON",
                "type": "query",
                "description": "The address, place ID (prefixed with place_id:), or latitude/longitude coordinates of the starting point."
              },
              {
                "name": "destination",
                "value": "Montreal, QC",
                "type": "query",
                "description": "The address, place ID (prefixed with place_id:), or latitude/longitude coordinates of the ending point."
              },
              {
                "name": "mode",
                "value": "driving",
                "type": "query",
                "description": "The travel mode for calculating directions. Defaults to driving."
              },
              {
                "name": "waypoints",
                "value": "optimize:true|Barrie, ON|Kingston, ON",
                "type": "query",
                "description": "An array of intermediate locations to include along the route, specified as pipe-separated values. Prefix with optimize:true to allow the Directions service to optimize the route by rearranging waypoints in a more efficient order. Each waypoint can be an address, place ID, or lat/lng pair."
              },
              {
                "name": "alternatives",
                "value": "true",
                "type": "query",
                "description": "If set to true, instructs the Directions service to return more than one route alternative when available."
              },
              {
                "name": "avoid",
                "value": "tolls|highways|ferries",
                "type": "query",
                "description": "Indicates that the calculated route(s) should avoid the indicated features. Pipe-separated list of restrictions."
              },
              {
                "name": "language",
                "value": "en",
                "type": "query",
                "description": "The language code in which to return results, where available."
              },
              {
                "name": "units",
                "value": "metric",
                "type": "query",
                "description": "Specifies the unit system to use when displaying results."
              },
              {
                "name": "region",
                "value": "us",
                "type": "query",
                "description": "The region code, specified as a ccTLD two-character value. Biases results towards a particular region."
              },
              {
                "name": "arrival_time",
                "value": "10",
                "type": "query",
                "description": "The desired arrival time for transit directions, specified as seconds since midnight, January 1, 1970 UTC. Cannot be used with departure_time."
              },
              {
                "name": "departure_time",
                "value": "example_value",
                "type": "query",
                "description": "The desired departure time, specified as seconds since midnight, January 1, 1970 UTC. For transit mode this is required if arrival_time is not specified. For driving mode with traffic_model, use \"now\" or a future timestamp."
              },
              {
                "name": "traffic_model",
                "value": "best_guess",
                "type": "query",
                "description": "The assumptions to use when calculating travel time in traffic. Only applies when mode is driving and departure_time is specified."
              },
              {
                "name": "transit_mode",
                "value": "bus|subway",
                "type": "query",
                "description": "Specifies one or more preferred modes of transit as a pipe-separated list. Only valid when mode is transit."
              },
              {
                "name": "transit_routing_preference",
                "value": "less_walking",
                "type": "query",
                "description": "Specifies preferences for transit routes. Only valid when mode is transit."
              },
              {
                "name": "key",
                "value": "example_value",
                "type": "query",
                "description": "Your application's API key."
              }
            ]
          },
          "docs": "Calculates directions between an origin and a destination, optionally via waypoints. Supports driving, walking, bicycling, and transit modes. Returns one or more routes composed of legs and steps, including distance, duration, polylines, and turn-by-turn instructions."
        }
      ]
    }
  ],
  "bundled": true
}