0
Not a bug

Нестабильность ответа от DADATA. Выдает ошибку, что адрес не распознан, даже если адрес выбран из подсказки. Примеры ответов прилагаю

gorbunova 3 years ago updated by Антон 3 years ago 5
Запрос1: Ростовская обл, г Новошахтинск, ул Духанина, д 4

{"suggestions":[
{"value":"Ростовская обл, г Новошахтинск, ул Духанина, д 4","unrestricted_value":"Ростовская обл, г Новошахтинск, ул Духанина, д 4","data":{"postal_code":null,    "country":"Россия","region_fias_id":"f10763dc-63e3-48db-83e1-9c566fe3092b","region_kladr_id":"6100000000000","region_with_type":"Ростовская обл","region_type":"обл","region_type_full":"область","region":"Ростовская","area_fias_id":null,"area_kladr_id":null,"area_with_type":null,"area_type":null,"area_type_full":null,"area":null,"city_fias_id":"bce1a4f2-7576-4427-8bd8-8d8b4e35ad11","city_kladr_id":"6100001000000","city_with_type":"г Новошахтинск","city_type":"г","city_type_full":"город","city":"Новошахтинск","city_area":null,"city_district_fias_id":null,"city_district_kladr_id":null,"city_district_with_type":null,"city_district_type":null,"city_district_type_full":null,"city_district":null,"settlement_fias_id":null,"settlement_kladr_id":null,"settlement_with_type":null,"settlement_type":null,"settlement_type_full":null,"settlement":null,"street_fias_id":"2b0146e1-f59e-4d20-af79-e3538ed17b22","street_kladr_id":"61000010000010100","street_with_type":"ул Духанина","street_type":"ул","street_type_full":"улица","street":"Духанина","house_fias_id":"4fa5ad12-8015-4216-8692-66fe6a068863","house_kladr_id":"6100001000001010069","house_type":"д","house_type_full":"дом","house":"4","block_type":null,"block_type_full":null,"block":null,"flat_type":null,"flat_type_full":null,"flat":null,"flat_area":null,"square_meter_price":null,"flat_price":null,"postal_box":null,"fias_id":"4fa5ad12-8015-4216-8692-66fe6a068863","fias_level":"8","kladr_id":"6100001000001010069","capital_marker":"0","okato":"60430000000","oktmo":"60730000","tax_office":"6182","tax_office_legal":null,"timezone":null,"geo_lat":null,"geo_lon":null,"beltway_hit":null,"beltway_distance":null,"qc_geo":null,"qc_complete":null,"qc_house":null,"unparsed_parts":null,"qc":null}},
{"value":"Ростовская обл, г Новошахтинск, ул Духанина, д 40","unrestricted_value":"Ростовская обл, г Новошахтинск, ул Духанина, д 40","data":{"postal_code":null,"country":"Россия","region_fias_id":"f10763dc-63e3-48db-83e1-9c566fe3092b","region_kladr_id":"6100000000000","region_with_type":"Ростовская обл","region_type":"обл","region_type_full":"область","region":"Ростовская","area_fias_id":null,"area_kladr_id":null,"area_with_type":null,"area_type":null,"area_type_full":null,"area":null,"city_fias_id":"bce1a4f2-7576-4427-8bd8-8d8b4e35ad11","city_kladr_id":"6100001000000","city_with_type":"г Новошахтинск","city_type":"г","city_type_full":"город","city":"Новошахтинск","city_area":null,"city_district_fias_id":null,"city_district_kladr_id":null,"city_district_with_type":null,"city_district_type":null,"city_district_type_full":null,"city_district":null,"settlement_fias_id":null,"settlement_kladr_id":null,"settlement_with_type":null,"settlement_type":null,"settlement_type_full":null,"settlement":null,"street_fias_id":"2b0146e1-f59e-4d20-af79-e3538ed17b22","street_kladr_id":"61000010000010100","street_with_type":"ул Духанина","street_type":"ул","street_type_full":"улица","street":"Духанина","house_fias_id":"38bf79fb-e9f4-449a-8fdf-aaa7202a7949","house_kladr_id":"6100001000001010039","house_type":"д","house_type_full":"дом","house":"40","block_type":null,"block_type_full":null,"block":null,"flat_type":null,"flat_type_full":null,"flat":null,"flat_area":null,"square_meter_price":null,"flat_price":null,"postal_box":null,"fias_id":"38bf79fb-e9f4-449a-8fdf-aaa7202a7949","fias_level":"8","kladr_id":"6100001000001010039","capital_marker":"0","okato":"60430000000","oktmo":"60730000","tax_office":"6182","tax_office_legal":null,"timezone":null,"geo_lat":null,"geo_lon":null,"beltway_hit":null,"beltway_distance":null,"qc_geo":null,"qc_complete":null,"qc_house":null,"unparsed_parts":null,"qc":null}},
{"value":"Ростовская обл, г Новошахтинск, ул Духанина, д 40а","unrestricted_value":"Ростовская обл, г Новошахтинск, ул Духанина, д 40а","data":{"postal_code":"346902","country":"Россия","region_fias_id":"f10763dc-63e3-48db-83e1-9c566fe3092b","region_kladr_id":"6100000000000","region_with_type":"Ростовская обл","region_type":"обл","region_type_full":"область","region":"Ростовская","area_fias_id":null,"area_kladr_id":null,"area_with_type":null,"area_type":null,"area_type_full":null,"area":null,"city_fias_id":"bce1a4f2-7576-4427-8bd8-8d8b4e35ad11","city_kladr_id":"6100001000000","city_with_type":"г Новошахтинск","city_type":"г","city_type_full":"город","city":"Новошахтинск","city_area":null,"city_district_fias_id":null,"city_district_kladr_id":null,"city_district_with_type":null,"city_district_type":null,"city_district_type_full":null,"city_district":null,"settlement_fias_id":null,"settlement_kladr_id":null,"settlement_with_type":null,"settlement_type":null,"settlement_type_full":null,"settlement":null,"street_fias_id":"2b0146e1-f59e-4d20-af79-e3538ed17b22","street_kladr_id":"61000010000010100","street_with_type":"ул Духанина","street_type":"ул","street_type_full":"улица","street":"Духанина","house_fias_id":"f082cbd6-3f77-4e01-89e9-6255e6a5a97d","house_kladr_id":"6100001000001010005","house_type":"д","house_type_full":"дом","house":"40а","block_type":null,"block_type_full":null,"block":null,"flat_type":null,"flat_type_full":null,"flat":null,"flat_area":null,"square_meter_price":null,"flat_price":null,"postal_box":null,"fias_id":"f082cbd6-3f77-4e01-89e9-6255e6a5a97d","fias_level":"8","kladr_id":"6100001000001010005","capital_marker":"0","okato":"60430000000","oktmo":"60730000","tax_office":"6182","tax_office_legal":null,"timezone":null,"geo_lat":null,"geo_lon":null,"beltway_hit":null,"beltway_distance":null,"qc_geo":null,"qc_complete":null,"qc_house":null,"unparsed_parts":null,"qc":null}},
{"value":"Ростовская обл, г Новошахтинск, ул Духанина, д 41а","unrestricted_value":"Ростовская обл, г Новошахтинск, ул Духанина, д 41а","data":{"postal_code":"346902","country":"Россия","region_fias_id":"f10763dc-63e3-48db-83e1-9c566fe3092b","region_kladr_id":"6100000000000","region_with_type":"Ростовская обл","region_type":"обл","region_type_full":"область","region":"Ростовская","area_fias_id":null,"area_kladr_id":null,"area_with_type":null,"area_type":null,"area_type_full":null,"area":null,"city_fias_id":"bce1a4f2-7576-4427-8bd8-8d8b4e35ad11","city_kladr_id":"6100001000000","city_with_type":"г Новошахтинск","city_type":"г","city_type_full":"город","city":"Новошахтинск","city_area":null,"city_district_fias_id":null,"city_district_kladr_id":null,"city_district_with_type":null,"city_district_type":null,"city_district_type_full":null,"city_district":null,"settlement_fias_id":null,"settlement_kladr_id":null,"settlement_with_type":null,"settlement_type":null,"settlement_type_full":null,"settlement":null,"street_fias_id":"2b0146e1-f59e-4d20-af79-e3538ed17b22","street_kladr_id":"61000010000010100","street_with_type":"ул Духанина","street_type":"ул","street_type_full":"улица","street":"Духанина","house_fias_id":"9b1e1513-ce52-4ea9-a602-779a8a60ae5d","house_kladr_id":"6100001000001010006","house_type":"д","house_type_full":"дом","house":"41а","block_type":null,"block_type_full":null,"block":null,"flat_type":null,"flat_type_full":null,"flat":null,"flat_area":null,"square_meter_price":null,"flat_price":null,"postal_box":null,"fias_id":"9b1e1513-ce52-4ea9-a602-779a8a60ae5d","fias_level":"8","kladr_id":"6100001000001010006","capital_marker":"0","okato":"60430000000","oktmo":"60730000","tax_office":"6182","tax_office_legal":null,"timezone":null,"geo_lat":null,"geo_lon":null,"beltway_hit":null,"beltway_distance":null,"qc_geo":null,"qc_complete":null,"qc_house":null,"unparsed_parts":null,"qc":null}},
{"value":"Ростовская обл, г Новошахтинск, ул Духанина, д 42","unrestricted_value":"Ростовская обл, г Новошахтинск, ул Духанина, д 42","data":{"postal_code":null,"country":"Россия","region_fias_id":"f10763dc-63e3-48db-83e1-9c566fe3092b","region_kladr_id":"6100000000000","region_with_type":"Ростовская обл","region_type":"обл","region_type_full":"область","region":"Ростовская","area_fias_id":null,"area_kladr_id":null,"area_with_type":null,"area_type":null,"area_type_full":null,"area":null,"city_fias_id":"bce1a4f2-7576-4427-8bd8-8d8b4e35ad11","city_kladr_id":"6100001000000","city_with_type":"г Новошахтинск","city_type":"г","city_type_full":"город","city":"Новошахтинск","city_area":null,"city_district_fias_id":null,"city_district_kladr_id":null,"city_district_with_type":null,"city_district_type":null,"city_district_type_full":null,"city_district":null,"settlement_fias_id":null,"settlement_kladr_id":null,"settlement_with_type":null,"settlement_type":null,"settlement_type_full":null,"settlement":null,"street_fias_id":"2b0146e1-f59e-4d20-af79-e3538ed17b22","street_kladr_id":"61000010000010100","street_with_type":"ул Духанина","street_type":"ул","street_type_full":"улица","street":"Духанина","house_fias_id":"27ff9dda-5311-4d58-883e-d09fc492acd4","house_kladr_id":"6100001000001010038","house_type":"д","house_type_full":"дом","house":"42","block_type":null,"block_type_full":null,"block":null,"flat_type":null,"flat_type_full":null,"flat":null,"flat_area":null,"square_meter_price":null,"flat_price":null,"postal_box":null,"fias_id":"27ff9dda-5311-4d58-883e-d09fc492acd4","fias_level":"8","kladr_id":"6100001000001010038","capital_marker":"0","okato":"60430000000","oktmo":"60730000","tax_office":"6182","tax_office_legal":null,"timezone":null,"geo_lat":null,"geo_lon":null,"beltway_hit":null,"beltway_distance":null,"qc_geo":null,"qc_complete":null,"qc_house":null,"unparsed_parts":null,"qc":null}},
{"value":"Ростовская обл, г Новошахтинск, ул Духанина, д 43","unrestricted_value":"Ростовская обл, г Новошахтинск, ул Духанина, д 43","data":{"postal_code":null,"country":"Россия","region_fias_id":"f10763dc-63e3-48db-83e1-9c566fe3092b","region_kladr_id":"6100000000000","region_with_type":"Ростовская обл","region_type":"обл","region_type_full":"область","region":"Ростовская","area_fias_id":null,"area_kladr_id":null,"area_with_type":null,"area_type":null,"area_type_full":null,"area":null,"city_fias_id":"bce1a4f2-7576-4427-8bd8-8d8b4e35ad11","city_kladr_id":"6100001000000","city_with_type":"г Новошахтинск","city_type":"г","city_type_full":"город","city":"Новошахтинск","city_area":null,"city_district_fias_id":null,"city_district_kladr_id":null,"city_district_with_type":null,"city_district_type":null,"city_district_type_full":null,"city_district":null,"settlement_fias_id":null,"settlement_kladr_id":null,"settlement_with_type":null,"settlement_type":null,"settlement_type_full":null,"settlement":null,"street_fias_id":"2b0146e1-f59e-4d20-af79-e3538ed17b22","street_kladr_id":"61000010000010100","street_with_type":"ул Духанина","street_type":"ул","street_type_full":"улица","street":"Духанина","house_fias_id":"01be1103-fd15-47ab-a1c3-444f1ac9ee23","house_kladr_id":"6100001000001010037","house_type":"д","house_type_full":"дом","house":"43","block_type":null,"block_type_full":null,"block":null,"flat_type":null,"flat_type_full":null,"flat":null,"flat_area":null,"square_meter_price":null,"flat_price":null,"postal_box":null,"fias_id":"01be1103-fd15-47ab-a1c3-444f1ac9ee23","fias_level":"8","kladr_id":"6100001000001010037","capital_marker":"0","okato":"60430000000","oktmo":"60730000","tax_office":"6182","tax_office_legal":null,"timezone":null,"geo_lat":null,"geo_lon":null,"beltway_hit":null,"beltway_distance":null,"qc_geo":null,"qc_complete":null,"qc_house":null,"unparsed_parts":null,"qc":null}},
{"value":"Ростовская обл, г Новошахтинск, ул Духанина, д 44","unrestricted_value":"Ростовская обл, г Новошахтинск, ул Духанина, д 44","data":{"postal_code":null,"country":"Россия","region_fias_id":"f10763dc-63e3-48db-83e1-9c566fe3092b","region_kladr_id":"6100000000000","region_with_type":"Ростовская обл","region_type":"обл","region_type_full":"область","region":"Ростовская","area_fias_id":null,"area_kladr_id":null,"area_with_type":null,"area_type":null,"area_type_full":null,"area":null,"city_fias_id":"bce1a4f2-7576-4427-8bd8-8d8b4e35ad11","city_kladr_id":"6100001000000","city_with_type":"г Новошахтинск","city_type":"г","city_type_full":"город","city":"Новошахтинск","city_area":null,"city_district_fias_id":null,"city_district_kladr_id":null,"city_district_with_type":null,"city_district_type":null,"city_district_type_full":null,"city_district":null,"settlement_fias_id":null,"settlement_kladr_id":null,"settlement_with_type":null,"settlement_type":null,"settlement_type_full":null,"settlement":null,"street_fias_id":"2b0146e1-f59e-4d20-af79-e3538ed17b22","street_kladr_id":"61000010000010100","street_with_type":"ул Духанина","street_type":"ул","street_type_full":"улица","street":"Духанина","house_fias_id":"bc49b50e-edbd-416e-a195-29eb255cd369","house_kladr_id":"6100001000001010036","house_type":"д","house_type_full":"дом","house":"44","block_type":null,"block_type_full":null,"block":null,"flat_type":null,"flat_type_full":null,"flat":null,"flat_area":null,"square_meter_price":null,"flat_price":null,"postal_box":null,"fias_id":"bc49b50e-edbd-416e-a195-29eb255cd369","fias_level":"8","kladr_id":"6100001000001010036","capital_marker":"0","okato":"60430000000","oktmo":"60730000","tax_office":"6182","tax_office_legal":null,"timezone":null,"geo_lat":null,"geo_lon":null,"beltway_hit":null,"beltway_distance":null,"qc_geo":null,"qc_complete":null,"qc_house":null,"unparsed_parts":null,"qc":null}},
{"value":"Ростовская обл, г Новошахтинск, ул Духанина, д 45","unrestricted_value":"Ростовская обл, г Новошахтинск, ул Духанина, д 45","data":{"postal_code":null,"country":"Россия","region_fias_id":"f10763dc-63e3-48db-83e1-9c566fe3092b","region_kladr_id":"6100000000000","region_with_type":"Ростовская обл","region_type":"обл","region_type_full":"область","region":"Ростовская","area_fias_id":null,"area_kladr_id":null,"area_with_type":null,"area_type":null,"area_type_full":null,"area":null,"city_fias_id":"bce1a4f2-7576-4427-8bd8-8d8b4e35ad11","city_kladr_id":"6100001000000","city_with_type":"г Новошахтинск","city_type":"г","city_type_full":"город","city":"Новошахтинск","city_area":null,"city_district_fias_id":null,"city_district_kladr_id":null,"city_district_with_type":null,"city_district_type":null,"city_district_type_full":null,"city_district":null,"settlement_fias_id":null,"settlement_kladr_id":null,"settlement_with_type":null,"settlement_type":null,"settlement_type_full":null,"settlement":null,"street_fias_id":"2b0146e1-f59e-4d20-af79-e3538ed17b22","street_kladr_id":"61000010000010100","street_with_type":"ул Духанина","street_type":"ул","street_type_full":"улица","street":"Духанина","house_fias_id":"fe401a5e-d682-45f9-b58a-d44d7a6baf32","house_kladr_id":"6100001000001010035","house_type":"д","house_type_full":"дом","house":"45","block_type":null,"block_type_full":null,"block":null,"flat_type":null,"flat_type_full":null,"flat":null,"flat_area":null,"square_meter_price":null,"flat_price":null,"postal_box":null,"fias_id":"fe401a5e-d682-45f9-b58a-d44d7a6baf32","fias_level":"8","kladr_id":"6100001000001010035","capital_marker":"0","okato":"60430000000","oktmo":"60730000","tax_office":"6182","tax_office_legal":null,"timezone":null,"geo_lat":null,"geo_lon":null,"beltway_hit":null,"beltway_distance":null,"qc_geo":null,"qc_complete":null,"qc_house":null,"unparsed_parts":null,"qc":null}},
{"value":"Ростовская обл, г Новошахтинск, ул Духанина, д 45а","unrestricted_value":"Ростовская обл, г Новошахтинск, ул Духанина, д 45а","data":{"postal_code":"346902","country":"Россия","region_fias_id":"f10763dc-63e3-48db-83e1-9c566fe3092b","region_kladr_id":"6100000000000","region_with_type":"Ростовская обл","region_type":"обл","region_type_full":"область","region":"Ростовская","area_fias_id":null,"area_kladr_id":null,"area_with_type":null,"area_type":null,"area_type_full":null,"area":null,"city_fias_id":"bce1a4f2-7576-4427-8bd8-8d8b4e35ad11","city_kladr_id":"6100001000000","city_with_type":"г Новошахтинск","city_type":"г","city_type_full":"город","city":"Новошахтинск","city_area":null,"city_district_fias_id":null,"city_district_kladr_id":null,"city_district_with_type":null,"city_district_type":null,"city_district_type_full":null,"city_district":null,"settlement_fias_id":null,"settlement_kladr_id":null,"settlement_with_type":null,"settlement_type":null,"settlement_type_full":null,"settlement":null,"street_fias_id":"2b0146e1-f59e-4d20-af79-e3538ed17b22","street_kladr_id":"61000010000010100","street_with_type":"ул Духанина","street_type":"ул","street_type_full":"улица","street":"Духанина","house_fias_id":"5d9a67f8-5636-4814-be9c-3117554ceeb3","house_kladr_id":"6100001000001010007","house_type":"д","house_type_full":"дом","house":"45а","block_type":null,"block_type_full":null,"block":null,"flat_type":null,"flat_type_full":null,"flat":null,"flat_area":null,"square_meter_price":null,"flat_price":null,"postal_box":null,"fias_id":"5d9a67f8-5636-4814-be9c-3117554ceeb3","fias_level":"8","kladr_id":"6100001000001010007","capital_marker":"0","okato":"60430000000","oktmo":"60730000","tax_office":"6182","tax_office_legal":null,"timezone":null,"geo_lat":null,"geo_lon":null,"beltway_hit":null,"beltway_distance":null,"qc_geo":null,"qc_complete":null,"qc_house":null,"unparsed_parts":null,"qc":null}},
{"value":"Ростовская обл, г Новошахтинск, ул Духанина, д 46","unrestricted_value":"Ростовская обл, г Новошахтинск, ул Духанина, д 46","data":{"postal_code":null,"country":"Россия","region_fias_id":"f10763dc-63e3-48db-83e1-9c566fe3092b","region_kladr_id":"6100000000000","region_with_type":"Ростовская обл","region_type":"обл","region_type_full":"область","region":"Ростовская","area_fias_id":null,"area_kladr_id":null,"area_with_type":null,"area_type":null,"area_type_full":null,"area":null,"city_fias_id":"bce1a4f2-7576-4427-8bd8-8d8b4e35ad11","city_kladr_id":"6100001000000","city_with_type":"г Новошахтинск","city_type":"г","city_type_full":"город","city":"Новошахтинск","city_area":null,"city_district_fias_id":null,"city_district_kladr_id":null,"city_district_with_type":null,"city_district_type":null,"city_district_type_full":null,"city_district":null,"settlement_fias_id":null,"settlement_kladr_id":null,"settlement_with_type":null,"settlement_type":null,"settlement_type_full":null,"settlement":null,"street_fias_id":"2b0146e1-f59e-4d20-af79-e3538ed17b22","street_kladr_id":"61000010000010100","street_with_type":"ул Духанина","street_type":"ул","street_type_full":"улица","street":"Духанина","house_fias_id":"4cd9b7b1-e716-43c0-9f72-5a006d6ffd6f","house_kladr_id":"6100001000001010034","house_type":"д","house_type_full":"дом","house":"46","block_type":null,"block_type_full":null,"block":null,"flat_type":null,"flat_type_full":null,"flat":null,"flat_area":null,"square_meter_price":null,"flat_price":null,"postal_box":null,"fias_id":"4cd9b7b1-e716-43c0-9f72-5a006d6ffd6f","fias_level":"8","kladr_id":"6100001000001010034","capital_marker":"0","okato":"60430000000","oktmo":"60730000","tax_office":"6182","tax_office_legal":null,"timezone":null,"geo_lat":null,"geo_lon":null,"beltway_hit":null,"beltway_distance":null,"qc_geo":null,"qc_complete":null,"qc_house":null,"unparsed_parts":null,"qc":null}}]}

Запрос2: Ростовская обл, г Новошахтинск, ул Духанина, д 4
{"suggestions":[
{"value":"Ростовская обл, г Новошахтинск, ул Духанина, д 4","unrestricted_value":"Ростовская обл, г Новошахтинск, ул Духанина, д 4","data":{"postal_code":"346902","country":"Россия","region_fias_id":"f10763dc-63e3-48db-83e1-9c566fe3092b","region_kladr_id":"6100000000000","region_with_type":"Ростовская обл","region_type":"обл","region_type_full":"область","region":"Ростовская","area_fias_id":null,"area_kladr_id":null,"area_with_type":null,"area_type":null,"area_type_full":null,"area":null,"city_fias_id":"bce1a4f2-7576-4427-8bd8-8d8b4e35ad11","city_kladr_id":"6100001000000","city_with_type":"г Новошахтинск","city_type":"г","city_type_full":"город","city":"Новошахтинск","city_area":null,"city_district_fias_id":null,"city_district_kladr_id":null,"city_district_with_type":null,"city_district_type":null,"city_district_type_full":null,"city_district":null,"settlement_fias_id":null,"settlement_kladr_id":null,"settlement_with_type":null,"settlement_type":null,"settlement_type_full":null,"settlement":null,"street_fias_id":"2b0146e1-f59e-4d20-af79-e3538ed17b22","street_kladr_id":"61000010000010100","street_with_type":"ул Духанина","street_type":"ул","street_type_full":"улица","street":"Духанина","house_fias_id":"4fa5ad12-8015-4216-8692-66fe6a068863","house_kladr_id":"6100001000001010069","house_type":"д","house_type_full":"дом","house":"4","block_type":null,"block_type_full":null,"block":null,"flat_type":null,"flat_type_full":null,"flat":null,"flat_area":null,"square_meter_price":null,"flat_price":null,"postal_box":null,"fias_id":"4fa5ad12-8015-4216-8692-66fe6a068863","fias_level":"8","kladr_id":"6100001000001010069","capital_marker":"0","okato":"60430000000","oktmo":"60730000","tax_office":"6182","tax_office_legal":null,"timezone":null,"geo_lat":"47.770308","geo_lon":"39.9154089","beltway_hit":null,"beltway_distance":null,"qc_geo":"2","qc_complete":null,"qc_house":null,"unparsed_parts":null,"qc":null}}]}

Как видим в 1-м ответе, поле postal_code = пустое. По этой причине адрес считается неразобранным.
Разъясните, пожалуйста, причины нестабильности работы.

Answer

Answer
Not a bug

Если индекса нет в справочнике адресов налоговой (ФИАС), то Дадата заполнит индекс, только когда пользователь выберет конкретный адрес из списка подсказок. См. подсказки возвращают разные значения в зависимости от count.


Для дома 4 по улице Духанина индекса в ФИАСе нет, так что это ровно такой случай.

Under review

Подсказки возвращают разные значения в зависимости от count.


1-й ответ был на запрос c "count": 10. Запросы с "count" > 1 идут, пока пользователь вводит адрес, но окончательно не определился. В ответе приходит базовая информация по подсказанным адресам.


2-й ответ вернулся на запрос с "count": 1. Этот запрос отправляется, когда пользователь выбирает конкретную подсказку из списка. В нашем случае первую. В ответ приходит расширенная информация об адресе.


Уточните, пожалуйста, какую ошибку, что адрес не распознан, вы имеете в виду?

Сообщение об ошибке: К сожалению, мы не смогли определить ваш адрес. Пожалуйста, выберите адрес из подсказок или измените способ доставки на самовывоз.

Дадата не возвращает таких ошибок («к сожалению, мы не смогли определить ваш адрес»). Видимо, это программа на вашем сайте так трактует ответ от подсказок. Пожалуйста, обратитесь к программисту, который настраивал интеграцию с Дадатой на вашем сайте. Готов его проконсультировать.


И дайте, пожалуйста, адрес страницы, на которой можно посмотреть описанную вами проблему.

Добрый день,


Да действительно, текст ошибки программный - причина пустой индекс.


Переформулирую исходный вопрос:

При запросе с одним и тем же адресом, не всегда возвращается поле POSTAL_CODE. В чем причина нестабильности результатов ответа? Можно ли это исправить?

Answer
Not a bug

Если индекса нет в справочнике адресов налоговой (ФИАС), то Дадата заполнит индекс, только когда пользователь выберет конкретный адрес из списка подсказок. См. подсказки возвращают разные значения в зависимости от count.


Для дома 4 по улице Духанина индекса в ФИАСе нет, так что это ровно такой случай.