Region information API
This request is used for receiving information about Yandex Go fares and services in the specified region.
Request syntax
GET https://taxi-routeinfo.taxi.yandex.net/zone_info?clid=<clid>&apikey=<apikey>&ll=<lon,lat>
Arguments:
-
clidis the client ID. To get an ID, fill out the form on the API for price forecasting page. Required parameter. -
apikeyis the API key. To get a key, fill out the form on the API for price forecasting page. This parameter can be used instead of theYaTaxi-Api-Keyheader. If theYaTaxi-Api-Keyheader is not passed, theapikeyparameter is mandatory.Alert
We do not recommend this method, since the token value might be saved in logs.
-
llis coordinates of the region. Required parameter. Argument format:{region longitude}, {region latitude}
Response field description
Responses may contain the following fields:
|
Field |
Description |
Format |
|
|
List of fare classes supported in the region. If the specified region is not supported by Yandex Go the array will be empty. |
Array. |
|
|
Class ID. Possible values:
|
String. |
|
|
List of services provided in the region. |
Array. |
|
|
ID of the service. Possible values:
|
String. |
Example query
GET https://taxi-routeinfo.taxi.yandex.net/zone_info?ll=37.589569560,55.733780&clid=t...t3&apikey=q...3
Example response
An example of a response to a request for region information looks like this:
{
"tariffs": [
{
"class": "econom",
"supported_requirements": [
{
"name": "conditioner"
},
{
"name": "childchair"
},
...
]
}, …
]
}
Possible response codes
The response to this request may contain the following response codes:
200: request completed successfully.400: request parameters were omitted or incorrect.403: authorization error. Invalid API key or client ID values.500: internal server error.
In case of code errors 400 and 403, the body of the response will contain a message about the error.
clid is the client ID. To get an ID, fill out the form on the API for price forecasting page. Required parameter.
apikey is the API key. To get a key, fill out the form on the API for price forecasting page. This parameter can be used instead of the YaTaxi-Api-Key header. If the YaTaxi-Api-Key header is not passed, the apikey parameter is mandatory.
ll is coordinates of the region. Required parameter. Argument format:
{region longitude}, {region latitude}
List of fare classes supported in the region. If the specified region is not supported by Yandex Go the array will be empty.
Class ID. Possible values:
econom: “Economy”.business: “Comfort”.comfortplus: “Comfort+”.minivan: “Minivan”.vip: “Business”.
List of services provided in the region.
ID of the service. Possible values:
yellowcarnumberfor a car with yellow number plates.nosmokingfor a driver that does not smoke.childchairfor the driver to have a child seat in the car.bicyclefor transporting bicycles.conditionerfor the car to have an air conditioner.animaltransportfor transporting animals.universalfor a station wagon.checkfor where a receipt of payment is required.skifor transporting skis or snowboards.waiting_in_transitfor time spent idle whilst travelling.meeting_arrivingfor meeting the rider with a sign.luggagefor paid transportation of baggage.