Address hints in the format of the legacy API SelectAddress

Address hints #

A method for quickly selecting an address from a list ranked by similarity. The minimum number of letters required to start a search is 3.

Method address #

GET /legacy/selectAddress

Functionality #

  • clears incoming data from extra characters to standardize the address
  • by address part displays a list of possible addresses, sorted by relevance

Request parameters #

ParameterDescription
lettersString for hint and parsing of the address
countryCountry code in which the address is searched, in ISO 3166 format (https://www.iso.org/iso-3166-country-codes.html)

Sample request data #

# GET parameters

-X GET 
--header 'Accept: application/json' 
'https://api.apidq.ru/api/legacy/selectAddress?letters=Кировская обл, г Киров, Ленина 1'

Response options #

Here is the translation of the provided table into English:

ParameterDescription
c_k5Found KLADR code
c_indexFound index
c_fullnameFound address (up to the street)
c_RegionNameRegion name
c_RegionTypeRegion abbreviation
c_SubRegionNameSubregion name
c_SubRegionTypeSubregion abbreviation
c_CityNameCity name
c_CityTypeCity abbreviation
c_NPNameLocality name
c_NPTypeLocality abbreviation
c_StreetNameStreet name
c_StreetTypeStreet abbreviation
c_houseHouse number
c_flatFlat number
c_HouseStatusParsing status of the house (description)

Sample response data #

[
    {
        "c_k5": "43000001000022500",
        "c_index": "610004",
        "c_fullname": "Кировская обл, г Киров, ул Ленина, дом 1",
        "c_RegionName": "Кировская",
        "c_RegionType": "обл",
        "c_SubRegionName": "",
        "c_SubRegionType": "",
        "c_CityName": "Киров",
        "c_CityType": "г",
        "c_NPName": "",
        "c_NPType": "",
        "c_StreetName": "Ленина",
        "c_StreetType": "ул",
        "c_house": "дом 1",
        "c_flat": "",
        "c_HouseStatus": "дом найден"
    },
    {
        "c_k5": "43000001000022400",
        "c_index": "610013",
        "c_fullname": "Кировская обл, г Киров, ул Ленина (Нововятский), дом 1",
        "c_RegionName": "Кировская",
        "c_RegionType": "обл",
        "c_SubRegionName": "",
        "c_SubRegionType": "",
        "c_CityName": "Киров",
        "c_CityType": "г",
        "c_NPName": "",
        "c_NPType": "",
        "c_StreetName": "Ленина (Нововятский)",
        "c_StreetType": "ул",
        "c_house": "дом 1",
        "c_flat": "",
        "c_HouseStatus": "дом найден"
    }
]