Price estimation
Resource
GET api/v1/price
Authorization
By api_key with the Public scope.
Query Parameters
Name | Type | Description |
---|---|---|
pickup_latitude | float | The latitude of the pickup. |
pickup_longitude | float | The longitude of the pickup. |
destination_latitude | float | The latitude of the destination. |
destination_longitude | float | The longitude of the destination. |
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/price?pickup_latitude=32.0813144&pickup_longitude=34.8077173&destination_latitude=32.196196&destination_longitude=34.8928347'
//For specific product
curl -X GET -H 'Authorization: Token [API_KEY]' \
-H "Content-Type: application/json" \
'https://api.gett.com/v1/availability/price?pickup_latitude=32.0813144&pickup_longitude=34.8077173&destination_latitude=32.196196&destination_longitude=34.8928347&product_id=ca1bcd35-c427-4fa0-be0a-54ca5e956276'
Response
{
"prices": [
{
"product_id": "44c31d73-8fff-422f-b3c9-8f7702f5b182",
"display_name": "Gett Taxi",
"currency": "GBP",
"estimate": "£70-80",
"low_estimate": 70,
"high_estimate": 80
},
{
"product_id": "fb21a2b5-50bd-40d2-98e8-d4e172c0b366",
"display_name": "Gett Taxi XL",
"currency": "GBP",
"estimate": "£30",
"low_estimate": 30,
"high_estimate": 30
}
]
}
Name | Type | Description |
---|---|---|
product_id | string | The unique ID of the specific product. |
display_name | string | The display name of the product. |
currency | string | The currency code. (ISO4217 https://en.wikipedia.org/wiki/ISO_4217) |
currency | string | The price estimation for the product. |
estimate | string | The estimate price formatted with local currency. it could be a range or a single number. |
low_estimate | double | Lower bound of the estimated price. |
high_estimate | double | Upper bound of the estimated price. |
Updated over 3 years ago