Address standardization in the format of the legacy API SearchAddressDetail

Address standardization #

The address bar parsing service analyzes the incoming content for the presence of address elements. The found address elements are compared with the address reference directories, and when a sufficient match is found, the only sought and granular address is displayed.

Method address #

GET /legacy/searchAddressDetail

Functionality #

  • clears the incoming data from unnecessary characters to standardize the address;
  • determines the coordinates of the address (if available in the reference directory);
  • determines the index of the house;
  • complements the missing address levels (region, district);
  • defines identifiers in various reference bases.

Request parameters #

ParameterDescription
addrString for parsing 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/searchAddressDetail?addr=санкт-петербург гороховая улица, 44'

Response options #

ParameterDescription
c_ischeckVerification status
c_index_inIndex in the input string
c_zipcodeFound index
c_address_originalInput address
c_address_fullFound address (up to the street)
c_kladrFound KLADR code
c_region_nameRegion name
c_region_abbrRegion abbreviation
c_district_nameDistrict name
c_district_abbrDistrict abbreviation
c_city_nameCity name
c_city_abbrCity abbreviation
c_community_nameCommunity name
c_community_abbrCommunity abbreviation
c_street_nameStreet name
c_street_abbrStreet abbreviation
c_json_kvantDetailed information about the residential part. See the description of the c_json_kvant structure
c_house_strHouse number
c_addr_lostUnparsed part of the input string
c_status_errorQuality code
c_house_errorParsing status of the house (code)
c_house_error_descParsing status of the house (description)
c_kladr1919-digit KLADR code
c_gninmbIFNS code
c_okatoOKATO code
c_oktmoOKTMO code
c_aoguidFIAS code up to the street
c_aolevelFIAS level
c_houseguidHouse identifier
c_timezoneTime zone
c_coordinateAddress coordinates. See the description of the coordinates structure

Nested structures #

Description of the structure c_json_kvant #

ParameterDescription
househouse
caseframe
buildstructure
literletter
lendpossession
constrconstruction
steadplot
flatapartment
officeoffice
roomroom
kabcabinet
placepremises
entrentrance
floorfloor
blockblock
pavpavilion
sekhouse section
abonsubscriber box
munitmilitary unit

Description of the structure c_coordinate #

ParameterDescription
c_latLatitude
c_lonLongitude
c_levelLevel

Sample response data #

[
    {
        "c_ischeck": "1",
        "c_index_in": "",
        "c_zipcode": "190031",
        "c_address_original": "санкт-петербург гороховая улица, 44",
        "c_address_full": "г Санкт-Петербург, ул Гороховая",
        "c_kladr": "78000000000031400",
        "c_region_name": "Санкт-Петербург",
        "c_region_abbr": "г",
        "c_district_name": "",
        "c_district_abbr": "",
        "c_city_name": "",
        "c_city_abbr": "",
        "c_community_name": "",
        "c_community_abbr": "",
        "c_street_name": "Гороховая",
        "c_street_abbr": "ул",
        "c_json_kvant": {
            "house": "44"
        },
        "c_house_str": "дом 44",
        "c_addr_lost": "",
        "c_status_error": "000035",
        "c_house_error": "3",
        "c_house_error_desc": "дом найден по КЛАДР/ФИАС",
        "c_kladr19": "",
        "c_gninmb": "",
        "c_okato": "",
        "c_oktmo": "40302000",
        "c_aoguid": "7daba2d5-ccdd-4a51-b55c-1f73f67fe4a5",
        "c_aolevel": "7",
        "c_houseguid": "",
        "c_timezone": "",
        "c_coordinate": {
            "c_lon": "30.3102",
            "c_lat": "59.9356",
            "c_level": "7"
        }
    }
]