Разбор почтовых адресов

 
 страна:
 субъект:
 регион:
 город:
 район города:
 улица:
 дом:
 квартира:
 почтовый индекс:
 GUID элемента ФИАС:
 код ФИАС:
 код КЛАДР:

 Например: Спб, Марш. Жукова, 44 128 - синоним "Спб" для Санкт-Петербург, сокращение "Марш."
Арзамас-16, Репина, д.1, кв. 34 - история переименований городов
Спб, Салтыкова-щедрина, 44 128 - история переименования улиц
Московская обл., г. Ногинск-9, ул. Юбилейная, д.4, кв. 34 - исправление типа элемента - "пгт" вместо "г"
ул Xоламская , 3 - восстановление пропущеных элементов
москва, льва толсотого , 12 - исправление опечаток
балашиа, некраова 4 59 - исправление опечаток
г москва ,пр 60 лет октября, , , 23/-137 - распознавание варианта написания

{
    "1": {
        "address_id": "1",
        "guid": "00000000-0000-0000-0000-000000000000",
        "fias_code": 0,
        "kladr_code": 0,
        "address_line": "Арзамас-16, Репина, д.1, кв. 34",
        "russian": true,
        "USSR": true,
        "OKSM": 643,
        "fields": [
            {
                "name": "Арзамас-16",
                "type": "Address:Part_City"
            },
            {
                "name": "Репина",
                "type": "Address:Part_Street"
            },
            {
                "name": "1",
                "key": "д",
                "type": "Address:Part_House"
            },
            {
                "name": "34",
                "key": "кв",
                "type": "Address:Part_Apartment"
            }
        ],
        "fields_norm": [
            {
                "name": "АРЗАМАС-16",
                "type": "Address:Part_City"
            },
            {
                "name": "РЕПИНА",
                "type": "Address:Part_Street"
            },
            {
                "name": "1",
                "key": "Д",
                "type": "Address:Part_House"
            },
            {
                "name": "34",
                "key": "КВ",
                "type": "Address:Part_Apartment"
            }
        ],
        "norm_parts_line": "АРЗАМАС-16, РЕПИНА, ДОМ 1, КВ 34",
        "variants": [
            {
                "norm_line": "ОБЛ НИЖЕГОРОДСКАЯ, Г САРОВ, УЛ РЕПИНА, ДОМ 1, КВ 34",
                "norm_line_lev_dist": 50,
                "PART_MATCHES": "_,0,1",
                "FIAS_Parts": [
                    {
                        "FIAS_Name": "НИЖЕГОРОДСКАЯ",
                        "FIAS_Socr": "ОБЛ",
                        "FIAS_Level": 1,
                        "FIAS_Code": 5200000000000000000
                    },
                    {
                        "FIAS_Name": "САРОВ",
                        "FIAS_Socr": "Г",
                        "FIAS_Level": 4,
                        "FIAS_Code": 5200000300000000000
                    },
                    {
                        "FIAS_Name": "РЕПИНА",
                        "FIAS_Socr": "УЛ",
                        "FIAS_Level": 7,
                        "FIAS_Code": 5200000300000000068
                    }
                ],
                "FIAS_GUID": "41d4d7c8-5f6a-4f12-806b-ed0deb3c4482",
                "FIAS_Code": 5200000300000000068,
                "FIAS_Level": 7,
                "KLADR_Code": 520000030000068,
                "KLADR_Level": 6,
                "OKATO": 22503000000,
                "OKTMO": 22704000001,
                "address_post_index": 0,
                "house_match": "unmatched",
                "flat_match": "unmatched"
            }
        ]
    }
}
{
  "address_id": "1",
  "try_fuzzy": true,
  "is_birth_address": false,
  "address_line": "Арзамас-16, Репина, д.1, кв. 34"
}
{
    "1": {
        "address_id": "1",
        "guid": "00000000-0000-0000-0000-000000000000",
        "fias_code": 0,
        "kladr_code": 0,
        "address_line": "Арзамас-16, Репина, д.1, кв. 34",
        "russian": true,
        "USSR": true,
        "OKSM": 643,
        "fields": [
            {
                "name": "Арзамас-16",
                "type": "Address:Part_City"
            },
            {
                "name": "Репина",
                "type": "Address:Part_Street"
            },
            {
                "name": "1",
                "key": "д",
                "type": "Address:Part_House"
            },
            {
                "name": "34",
                "key": "кв",
                "type": "Address:Part_Apartment"
            }
        ],
        "fields_norm": [
            {
                "name": "АРЗАМАС-16",
                "type": "Address:Part_City"
            },
            {
                "name": "РЕПИНА",
                "type": "Address:Part_Street"
            },
            {
                "name": "1",
                "key": "Д",
                "type": "Address:Part_House"
            },
            {
                "name": "34",
                "key": "КВ",
                "type": "Address:Part_Apartment"
            }
        ],
        "norm_parts_line": "АРЗАМАС-16, РЕПИНА, ДОМ 1, КВ 34",
        "variants": [
            {
                "norm_line": "ОБЛ НИЖЕГОРОДСКАЯ, Г САРОВ, УЛ РЕПИНА, ДОМ 1, КВ 34",
                "norm_line_lev_dist": 50,
                "PART_MATCHES": "_,0,1",
                "FIAS_Parts": [
                    {
                        "FIAS_Name": "НИЖЕГОРОДСКАЯ",
                        "FIAS_Socr": "ОБЛ",
                        "FIAS_Level": 1,
                        "FIAS_Code": 5200000000000000000
                    },
                    {
                        "FIAS_Name": "САРОВ",
                        "FIAS_Socr": "Г",
                        "FIAS_Level": 4,
                        "FIAS_Code": 5200000300000000000
                    },
                    {
                        "FIAS_Name": "РЕПИНА",
                        "FIAS_Socr": "УЛ",
                        "FIAS_Level": 7,
                        "FIAS_Code": 5200000300000000068
                    }
                ],
                "FIAS_GUID": "41d4d7c8-5f6a-4f12-806b-ed0deb3c4482",
                "FIAS_Code": 5200000300000000068,
                "FIAS_Level": 7,
                "KLADR_Code": 520000030000068,
                "KLADR_Level": 6,
                "OKATO": 22503000000,
                "OKTMO": 22704000001,
                "address_post_index": 0,
                "house_match": "unmatched",
                "flat_match": "unmatched"
            }
        ]
    }
}
<?xml version="1.0" encoding="utf-16"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <soap:Body>
    <GetSummary xmlns="http://sega.rco.ru/Stub/">
      <GetSummaryRequest>
        <InputText>ew0KICAiYWRkcmVzc19pZCI6ICIxIiwNCiAgInRyeV9mdXp6eSI6IHRydWUsDQogICJpc19iaXJ0
aF9hZGRyZXNzIjogZmFsc2UsDQogICJhZGRyZXNzX2xpbmUiOiAi0JDRgNC30LDQvNCw0YEtMTYs
INCg0LXQv9C40L3QsCwg0LQuMSwg0LrQsi4gMzQiDQp9</InputText>
        <ModuleName>FIAS</ModuleName>
      </GetSummaryRequest>
    </GetSummary>
  </soap:Body>
</soap:Envelope>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:fxs="http://sega.rco.ru/Stub/">
  <SOAP-ENV:Body>
    <fxs:GetSummaryResponse>
      <fxs:GetSummaryResult>
        ewogICAgIjEiOiB7CiAgICAgICAgImFkZHJlc3NfaWQiOiAiMSIsCiAgICAgICAgImd1aWQiOiAi
MDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIiwKICAgICAgICAiZmlhc19jb2Rl
IjogMCwKICAgICAgICAia2xhZHJfY29kZSI6IDAsCiAgICAgICAgImFkZHJlc3NfbGluZSI6ICLQ
kNGA0LfQsNC80LDRgS0xNiwg0KDQtdC/0LjQvdCwLCDQtC4xLCDQutCyLiAzNCIsCiAgICAgICAg
InJ1c3NpYW4iOiB0cnVlLAogICAgICAgICJVU1NSIjogdHJ1ZSwKICAgICAgICAiT0tTTSI6IDY0
MywKICAgICAgICAiZmllbGRzIjogWwogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAibmFt
ZSI6ICLQkNGA0LfQsNC80LDRgS0xNiIsCiAgICAgICAgICAgICAgICAidHlwZSI6ICJBZGRyZXNz
OlBhcnRfQ2l0eSIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgewogICAgICAgICAgICAgICAg
Im5hbWUiOiAi0KDQtdC/0LjQvdCwIiwKICAgICAgICAgICAgICAgICJ0eXBlIjogIkFkZHJlc3M6
UGFydF9TdHJlZXQiCiAgICAgICAgICAgIH0sCiAgICAgICAgICAgIHsKICAgICAgICAgICAgICAg
ICJuYW1lIjogIjEiLAogICAgICAgICAgICAgICAgImtleSI6ICLQtCIsCiAgICAgICAgICAgICAg
ICAidHlwZSI6ICJBZGRyZXNzOlBhcnRfSG91c2UiCiAgICAgICAgICAgIH0sCiAgICAgICAgICAg
IHsKICAgICAgICAgICAgICAgICJuYW1lIjogIjM0IiwKICAgICAgICAgICAgICAgICJrZXkiOiAi
0LrQsiIsCiAgICAgICAgICAgICAgICAidHlwZSI6ICJBZGRyZXNzOlBhcnRfQXBhcnRtZW50Igog
ICAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAiZmllbGRzX25vcm0iOiBbCiAgICAgICAg
ICAgIHsKICAgICAgICAgICAgICAgICJuYW1lIjogItCQ0KDQl9CQ0JzQkNChLTE2IiwKICAgICAg
ICAgICAgICAgICJ0eXBlIjogIkFkZHJlc3M6UGFydF9DaXR5IgogICAgICAgICAgICB9LAogICAg
ICAgICAgICB7CiAgICAgICAgICAgICAgICAibmFtZSI6ICLQoNCV0J/QmNCd0JAiLAogICAgICAg
ICAgICAgICAgInR5cGUiOiAiQWRkcmVzczpQYXJ0X1N0cmVldCIKICAgICAgICAgICAgfSwKICAg
ICAgICAgICAgewogICAgICAgICAgICAgICAgIm5hbWUiOiAiMSIsCiAgICAgICAgICAgICAgICAi
a2V5IjogItCUIiwKICAgICAgICAgICAgICAgICJ0eXBlIjogIkFkZHJlc3M6UGFydF9Ib3VzZSIK
ICAgICAgICAgICAgfSwKICAgICAgICAgICAgewogICAgICAgICAgICAgICAgIm5hbWUiOiAiMzQi
LAogICAgICAgICAgICAgICAgImtleSI6ICLQmtCSIiwKICAgICAgICAgICAgICAgICJ0eXBlIjog
IkFkZHJlc3M6UGFydF9BcGFydG1lbnQiCiAgICAgICAgICAgIH0KICAgICAgICBdLAogICAgICAg
ICJub3JtX3BhcnRzX2xpbmUiOiAi0JDQoNCX0JDQnNCQ0KEtMTYsINCg0JXQn9CY0J3QkCwg0JTQ
ntCcIDEsINCa0JIgMzQiLAogICAgICAgICJ2YXJpYW50cyI6IFsKICAgICAgICAgICAgewogICAg
ICAgICAgICAgICAgIm5vcm1fbGluZSI6ICLQntCR0Jsg0J3QmNCW0JXQk9Ce0KDQntCU0KHQmtCQ
0K8sINCTINCh0JDQoNCe0JIsINCj0Jsg0KDQldCf0JjQndCQLCDQlNCe0JwgMSwg0JrQkiAzNCIs
CiAgICAgICAgICAgICAgICAibm9ybV9saW5lX2xldl9kaXN0IjogNTAsCiAgICAgICAgICAgICAg
ICAiUEFSVF9NQVRDSEVTIjogIl8sMCwxIiwKICAgICAgICAgICAgICAgICJGSUFTX1BhcnRzIjog
WwogICAgICAgICAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgICAgICAgICAgIkZJQVNfTmFt
ZSI6ICLQndCY0JbQldCT0J7QoNCe0JTQodCa0JDQryIsCiAgICAgICAgICAgICAgICAgICAgICAg
ICJGSUFTX1NvY3IiOiAi0J7QkdCbIiwKICAgICAgICAgICAgICAgICAgICAgICAgIkZJQVNfTGV2
ZWwiOiAxLAogICAgICAgICAgICAgICAgICAgICAgICAiRklBU19Db2RlIjogNTIwMDAwMDAwMDAw
MDAwMDAwMAogICAgICAgICAgICAgICAgICAgIH0sCiAgICAgICAgICAgICAgICAgICAgewogICAg
ICAgICAgICAgICAgICAgICAgICAiRklBU19OYW1lIjogItCh0JDQoNCe0JIiLAogICAgICAgICAg
ICAgICAgICAgICAgICAiRklBU19Tb2NyIjogItCTIiwKICAgICAgICAgICAgICAgICAgICAgICAg
IkZJQVNfTGV2ZWwiOiA0LAogICAgICAgICAgICAgICAgICAgICAgICAiRklBU19Db2RlIjogNTIw
MDAwMDMwMDAwMDAwMDAwMAogICAgICAgICAgICAgICAgICAgIH0sCiAgICAgICAgICAgICAgICAg
ICAgewogICAgICAgICAgICAgICAgICAgICAgICAiRklBU19OYW1lIjogItCg0JXQn9CY0J3QkCIs
CiAgICAgICAgICAgICAgICAgICAgICAgICJGSUFTX1NvY3IiOiAi0KPQmyIsCiAgICAgICAgICAg
ICAgICAgICAgICAgICJGSUFTX0xldmVsIjogNywKICAgICAgICAgICAgICAgICAgICAgICAgIkZJ
QVNfQ29kZSI6IDUyMDAwMDAzMDAwMDAwMDAwNjgKICAgICAgICAgICAgICAgICAgICB9CiAgICAg
ICAgICAgICAgICBdLAogICAgICAgICAgICAgICAgIkZJQVNfR1VJRCI6ICI0MWQ0ZDdjOC01ZjZh
LTRmMTItODA2Yi1lZDBkZWIzYzQ0ODIiLAogICAgICAgICAgICAgICAgIkZJQVNfQ29kZSI6IDUy
MDAwMDAzMDAwMDAwMDAwNjgsCiAgICAgICAgICAgICAgICAiRklBU19MZXZlbCI6IDcsCiAgICAg
ICAgICAgICAgICAiS0xBRFJfQ29kZSI6IDUyMDAwMDAzMDAwMDA2OCwKICAgICAgICAgICAgICAg
ICJLTEFEUl9MZXZlbCI6IDYsCiAgICAgICAgICAgICAgICAiT0tBVE8iOiAyMjUwMzAwMDAwMCwK
ICAgICAgICAgICAgICAgICJPS1RNTyI6IDIyNzA0MDAwMDAxLAogICAgICAgICAgICAgICAgImFk
ZHJlc3NfcG9zdF9pbmRleCI6IDAsCiAgICAgICAgICAgICAgICAiaG91c2VfbWF0Y2giOiAidW5t
YXRjaGVkIiwKICAgICAgICAgICAgICAgICJmbGF0X21hdGNoIjogInVubWF0Y2hlZCIKICAgICAg
ICAgICAgfQogICAgICAgIF0KICAgIH0KfQ==</fxs:Text>
      </fxs:GetSummaryResult>
    </fxs:GetSummaryResponse>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

e-mail: info@rco.ru
© 2022 www.rco.ru