Google

Google Directions

Returns directions between two points from Google Maps.

get/google-maps-directions

Request

  • Base URL: https://api.outscraper.cloud
  • URL: https://api.outscraper.cloud/google-maps-directions
  • Auth: API key in header X-API-KEY

Query parameters

originstring[] required

The parameter defines the origin. You can use anything that you would use on Google Maps directions (e.g., Lincoln Way & 19th Ave, San Francisco, USA).

It supports batching by sending arrays with up to 1000 origins. It allows multiple directions to be sent in one request and save on network latency time.

destinationstring[] required

The parameter defines the destination. You can use anything that you would use on Google Maps directions (e.g., 19th Ave & Taraval St, San Francisco, USA).

It supports batching by sending arrays with up to 1000 destinations. It allows multiple directions to be sent in one request and save on network latency time.

departure_timeinteger

The parameter specifies the departure timestamp.

The current timestamp is used when the value is not provided.

finish_timeinteger

The parameter specifies the end departure timestamp.

Using this parameter requires using the interval parameter.

intervalinteger

The parameter specifies the interval to use between departure_time and finish_time.

travel_mode'best' | 'car' | 'transit' | 'walk' | 'bike' | 'flight'

The parameter specifies one of the travel modes.

Parameters

#/components/schemas/parameters/language (unresolved $ref)
#/components/schemas/parameters/region (unresolved $ref)
#/components/schemas/parameters/fields (unresolved $ref)
#/components/schemas/parameters/async (unresolved $ref)
#/components/schemas/parameters/ui (unresolved $ref)
#/components/schemas/parameters/format (unresolved $ref)
#/components/schemas/parameters/webhook (unresolved $ref)

Response

The response contains the status of the request and data.

Changes

No recorded changes to this operation across all 1 revision of this API.