Resource

GET /v1/availability/eta

Authorization

By api_key with the Public scope.

Query Parameters

Name

Type

Description

latitude

float

The current latitude.

longitude

float

The current longitude.

product_id (optional)

string

The unique ID of the specific product.

Request

curl -X GET -H 'Authorization: Token [API_KEY]' \
            -H "Content-Type: application/json" \
            'https://api.gett.com/v1/availability/eta?latitude=32.0813144&longitude=34.8077173'
            
//For specefic product
curl -X GET -H 'Authorization: Token [API_KEY]' \
            -H "Content-Type: application/json" \
            'https://api.gett.com/v1/availability/eta?latitude=32.0813144&longitude=34.8077173&product_id=ca1bcd35-c427-4fa0-be0a-54ca5e956276'

Response

{
  "etas": [
    {
      "product_id": "ca1bcd35-c427-4fa0-be0a-54ca5e956276",
      "display_name": "Gett Express",
      "eta": 265
    },
    {
      "product_id": "08d4801f-452d-49e7-9b96-944d7c2ca722",
      "display_name": "Gett Kids",
      "eta": 1800
    },
    {
      "product_id": "b64ca6d1-d5e8-4054-8dd8-ab858db82091",
      "display_name": "Gett Premium",
      "eta": 275
    },
    {
      "product_id": "93b83484-98c8-4b6b-8103-81a046bdd85a",
      "display_name": "Gett Mehadrin",
      "eta": 275
    }
  ]
}

Name

Type

Description

etas

array

The object containing the information about the etas of the available products.

product_id

string

The unique ID of the specific product.

display_name

string

The display name of the product.

eta

integer

The estimation in seconds.


Did this page help you?