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/checkAddress
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
#
Sample request data
#
# GET parameters
-X GET
--header 'Accept: application/json'
'https://api.apidq.ru/api/legacy/checkAddress?addr=санкт-петербург гороховая улица, 44'
Response options
#
Parameter | Description |
---|
c_ischeck | Verification status |
c_index_in | Index in the input string |
c_index_out | Found index |
c_addr_in | Input address |
c_addr_out | Found address (up to the street) |
c_kladr | Found KLADR code |
c_json_kvant | Detailed information about the residential part. See the description of the c_json_kvant structure |
c_house_str | House number |
c_status_error | Quality code |
c_house_error_desc | Parsing status of the house (description) |
c_addr_lost | Unparsed part of the input string |
c_kladr19 | 19-digit KLADR code |
c_gninmb | IFNS code |
c_okato | OKATO code |
c_oktmo | OKTMO code |
c_aoguid | FIAS code up to the street |
c_aolevel | FIAS level |
c_houseguid | House identifier |
c_timezone | Time zone |
c_coordinate | Address coordinates. See the description of the coordinates structure |
Nested structures
#
Description of the structure c_json_kvant
#
Parameter | Description |
---|
house | house |
case | frame |
build | structure |
liter | letter |
lend | possession |
constr | construction |
stead | plot |
flat | apartment |
office | office |
room | room |
kab | cabinet |
place | premises |
entr | entrance |
floor | floor |
block | block |
pav | pavilion |
sek | house section |
abon | subscriber box |
munit | military unit |
Description of the structure c_coordinate
#
Parameter | Description |
---|
c_lat | Latitude |
c_lon | Longitude |
c_level | Level |
Sample response data
#
[
{
"c_ischeck": "1",
"c_index_in": "",
"c_index_out": "190031",
"c_addr_in": "санкт-петербург гороховая улица, 44",
"c_addr_out": "г Санкт-Петербург, ул Гороховая",
"c_kladr": "78000000000031400",
"c_json_kvant": {
"house": "44"
},
"c_kvant": "house:44",
"c_house_str": "дом 44",
"c_house_error_desc": "дом найден по КЛАДР/ФИАС",
"c_status_error": "000035",
"c_addr_lost": "",
"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"
}
}
]