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": "example"
}

Name

Description

location

Type: string

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

Example: example

Responses

200 OK

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

Body

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

Name

Description

variants

Type: LocationDetectedVariant[]

Example
[
  {
    "geo_id": 0,
    "address": "example"
  }
]

LocationDetectedVariant

Name

Description

address

Type: string

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

Example: example

geo_id

Type: integer

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

Example
{
  "geo_id": 0,
  "address": "example"
}

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