2.01. Получение идентификатора населённого пункта

Получение идентификатора населённого пункта (geo_id) по адресу или его фрагменту.

Request

POST

b2b.taxi.tst.yandex.net/api/b2b/platform/location/detect

Тестовое окружение

POST

b2b-authproxy.taxi.yandex.net/api/b2b/platform/location/detect

Продакшен-окружение

Body

application/json
{
    "location": "string"
}

Name

Description

location*

Type: string

Адрес или его фрагмент

Responses

200 OK

Успешный запрос

Body

application/json
{
    "variants": [
        {
            "geo_id": 0,
            "address": "string"
        }
    ]
}

Name

Description

variants

Type: LocationDetectedVariant[]

LocationDetectedVariant

Name

Description

address*

Type: string

Вариант адреса

geo_id*

Type: integer

Идентификатор населенного пункта (geo_id)

No longer supported, please use an alternative and newer version.