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

 
 страна:
 субъект:
 регион:
 город:
 район города:
 улица:
 дом:
 квартира:
 почтовый индекс:
 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": "москва, льва толсотого , 12",
        "russian": true,
        "USSR": true,
        "OKSM": 643,
        "fields": [
            {
                "name": "москва",
                "type": "Address:Part_City"
            },
            {
                "name": "льва толсотого",
                "key": " ",
                "type": "Address:Part_Street"
            },
            {
                "name": "12",
                "type": "Address:Part_House"
            }
        ],
        "fields_norm": [
            {
                "name": "МОСКВА",
                "type": "Address:Part_City"
            },
            {
                "name": "ЛЬВА ТОЛСОТОГО",
                "type": "Address:Part_Street"
            },
            {
                "name": "12",
                "type": "Address:Part_House"
            }
        ],
        "norm_parts_line": "МОСКВА, ЛЬВА ТОЛСОТОГО, ДОМ 12",
        "variants": [
            {
                "norm_line": "Г МОСКВА, УЛ ЛЬВА ТОЛСТОГО, ДОМ 12 СТР 1",
                "norm_line_lev_dist": 30,
                "PART_MATCHES": "0,1*",
                "FIAS_Parts": [
                    {
                        "FIAS_Name": "МОСКВА",
                        "FIAS_Socr": "Г",
                        "FIAS_Level": 1,
                        "FIAS_Code": 7700000000000000000
                    },
                    {
                        "FIAS_Name": "ЛЬВА ТОЛСТОГО",
                        "FIAS_Socr": "УЛ",
                        "FIAS_Level": 7,
                        "FIAS_Code": 7700000000000007095
                    }
                ],
                "FIAS_GUID": "45141195-0a4b-49a5-813c-90fc0089ff6b",
                "FIAS_Code": 7700000000000007095,
                "FIAS_Level": 7,
                "KLADR_Code": 770000000007095,
                "KLADR_Level": 6,
                "OKATO": 45286590000,
                "OKTMO": 45383000,
                "house_variants": [
                    {
                        "house_line": "ДОМ 12 СТР 1",
                        "post_index": 119021,
                        "HOUSE_GUID": "e0e2a04b-5c05-4599-a6dc-2e913a828179"
                    }
                ],
                "address_post_index": 119021,
                "house_match": "exact",
                "flat_match": "none"
            }
        ]
    }
}
{
  "address_id": "1",
  "try_fuzzy": true,
  "is_birth_address": false,
  "address_line": "москва, льва толсотого , 12"
}
{
    "1": {
        "address_id": "1",
        "guid": "00000000-0000-0000-0000-000000000000",
        "fias_code": 0,
        "kladr_code": 0,
        "address_line": "москва, льва толсотого , 12",
        "russian": true,
        "USSR": true,
        "OKSM": 643,
        "fields": [
            {
                "name": "москва",
                "type": "Address:Part_City"
            },
            {
                "name": "льва толсотого",
                "key": " ",
                "type": "Address:Part_Street"
            },
            {
                "name": "12",
                "type": "Address:Part_House"
            }
        ],
        "fields_norm": [
            {
                "name": "МОСКВА",
                "type": "Address:Part_City"
            },
            {
                "name": "ЛЬВА ТОЛСОТОГО",
                "type": "Address:Part_Street"
            },
            {
                "name": "12",
                "type": "Address:Part_House"
            }
        ],
        "norm_parts_line": "МОСКВА, ЛЬВА ТОЛСОТОГО, ДОМ 12",
        "variants": [
            {
                "norm_line": "Г МОСКВА, УЛ ЛЬВА ТОЛСТОГО, ДОМ 12 СТР 1",
                "norm_line_lev_dist": 30,
                "PART_MATCHES": "0,1*",
                "FIAS_Parts": [
                    {
                        "FIAS_Name": "МОСКВА",
                        "FIAS_Socr": "Г",
                        "FIAS_Level": 1,
                        "FIAS_Code": 7700000000000000000
                    },
                    {
                        "FIAS_Name": "ЛЬВА ТОЛСТОГО",
                        "FIAS_Socr": "УЛ",
                        "FIAS_Level": 7,
                        "FIAS_Code": 7700000000000007095
                    }
                ],
                "FIAS_GUID": "45141195-0a4b-49a5-813c-90fc0089ff6b",
                "FIAS_Code": 7700000000000007095,
                "FIAS_Level": 7,
                "KLADR_Code": 770000000007095,
                "KLADR_Level": 6,
                "OKATO": 45286590000,
                "OKTMO": 45383000,
                "house_variants": [
                    {
                        "house_line": "ДОМ 12 СТР 1",
                        "post_index": 119021,
                        "HOUSE_GUID": "e0e2a04b-5c05-4599-a6dc-2e913a828179"
                    }
                ],
                "address_post_index": 119021,
                "house_match": "exact",
                "flat_match": "none"
            }
        ]
    }
}
<?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
aF9hZGRyZXNzIjogZmFsc2UsDQogICJhZGRyZXNzX2xpbmUiOiAi0LzQvtGB0LrQstCwLCDQu9GM
0LLQsCDRgtC+0LvRgdC+0YLQvtCz0L4gLCAxMiINCn0=</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
vNC+0YHQutCy0LAsINC70YzQstCwINGC0L7Qu9GB0L7RgtC+0LPQviAsIDEyIiwKICAgICAgICAi
cnVzc2lhbiI6IHRydWUsCiAgICAgICAgIlVTU1IiOiB0cnVlLAogICAgICAgICJPS1NNIjogNjQz
LAogICAgICAgICJmaWVsZHMiOiBbCiAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgICJuYW1l
IjogItC80L7RgdC60LLQsCIsCiAgICAgICAgICAgICAgICAidHlwZSI6ICJBZGRyZXNzOlBhcnRf
Q2l0eSIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgewogICAgICAgICAgICAgICAgIm5hbWUi
OiAi0LvRjNCy0LAg0YLQvtC70YHQvtGC0L7Qs9C+IiwKICAgICAgICAgICAgICAgICJrZXkiOiAi
ICIsCiAgICAgICAgICAgICAgICAidHlwZSI6ICJBZGRyZXNzOlBhcnRfU3RyZWV0IgogICAgICAg
ICAgICB9LAogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAibmFtZSI6ICIxMiIsCiAgICAg
ICAgICAgICAgICAidHlwZSI6ICJBZGRyZXNzOlBhcnRfSG91c2UiCiAgICAgICAgICAgIH0KICAg
ICAgICBdLAogICAgICAgICJmaWVsZHNfbm9ybSI6IFsKICAgICAgICAgICAgewogICAgICAgICAg
ICAgICAgIm5hbWUiOiAi0JzQntCh0JrQktCQIiwKICAgICAgICAgICAgICAgICJ0eXBlIjogIkFk
ZHJlc3M6UGFydF9DaXR5IgogICAgICAgICAgICB9LAogICAgICAgICAgICB7CiAgICAgICAgICAg
ICAgICAibmFtZSI6ICLQm9Cs0JLQkCDQotCe0JvQodCe0KLQntCT0J4iLAogICAgICAgICAgICAg
ICAgInR5cGUiOiAiQWRkcmVzczpQYXJ0X1N0cmVldCIKICAgICAgICAgICAgfSwKICAgICAgICAg
ICAgewogICAgICAgICAgICAgICAgIm5hbWUiOiAiMTIiLAogICAgICAgICAgICAgICAgInR5cGUi
OiAiQWRkcmVzczpQYXJ0X0hvdXNlIgogICAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAi
bm9ybV9wYXJ0c19saW5lIjogItCc0J7QodCa0JLQkCwg0JvQrNCS0JAg0KLQntCb0KHQntCi0J7Q
k9CeLCDQlNCe0JwgMTIiLAogICAgICAgICJ2YXJpYW50cyI6IFsKICAgICAgICAgICAgewogICAg
ICAgICAgICAgICAgIm5vcm1fbGluZSI6ICLQkyDQnNCe0KHQmtCS0JAsINCj0Jsg0JvQrNCS0JAg
0KLQntCb0KHQotCe0JPQniwg0JTQntCcIDEyINCh0KLQoCAxIiwKICAgICAgICAgICAgICAgICJu
b3JtX2xpbmVfbGV2X2Rpc3QiOiAzMCwKICAgICAgICAgICAgICAgICJQQVJUX01BVENIRVMiOiAi
MCwxKiIsCiAgICAgICAgICAgICAgICAiRklBU19QYXJ0cyI6IFsKICAgICAgICAgICAgICAgICAg
ICB7CiAgICAgICAgICAgICAgICAgICAgICAgICJGSUFTX05hbWUiOiAi0JzQntCh0JrQktCQIiwK
ICAgICAgICAgICAgICAgICAgICAgICAgIkZJQVNfU29jciI6ICLQkyIsCiAgICAgICAgICAgICAg
ICAgICAgICAgICJGSUFTX0xldmVsIjogMSwKICAgICAgICAgICAgICAgICAgICAgICAgIkZJQVNf
Q29kZSI6IDc3MDAwMDAwMDAwMDAwMDAwMDAKICAgICAgICAgICAgICAgICAgICB9LAogICAgICAg
ICAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgICAgICAgICAgIkZJQVNfTmFtZSI6ICLQm9Cs
0JLQkCDQotCe0JvQodCi0J7Qk9CeIiwKICAgICAgICAgICAgICAgICAgICAgICAgIkZJQVNfU29j
ciI6ICLQo9CbIiwKICAgICAgICAgICAgICAgICAgICAgICAgIkZJQVNfTGV2ZWwiOiA3LAogICAg
ICAgICAgICAgICAgICAgICAgICAiRklBU19Db2RlIjogNzcwMDAwMDAwMDAwMDAwNzA5NQogICAg
ICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIF0sCiAgICAgICAgICAgICAgICAiRklB
U19HVUlEIjogIjQ1MTQxMTk1LTBhNGItNDlhNS04MTNjLTkwZmMwMDg5ZmY2YiIsCiAgICAgICAg
ICAgICAgICAiRklBU19Db2RlIjogNzcwMDAwMDAwMDAwMDAwNzA5NSwKICAgICAgICAgICAgICAg
ICJGSUFTX0xldmVsIjogNywKICAgICAgICAgICAgICAgICJLTEFEUl9Db2RlIjogNzcwMDAwMDAw
MDA3MDk1LAogICAgICAgICAgICAgICAgIktMQURSX0xldmVsIjogNiwKICAgICAgICAgICAgICAg
ICJPS0FUTyI6IDQ1Mjg2NTkwMDAwLAogICAgICAgICAgICAgICAgIk9LVE1PIjogNDUzODMwMDAs
CiAgICAgICAgICAgICAgICAiaG91c2VfdmFyaWFudHMiOiBbCiAgICAgICAgICAgICAgICAgICAg
ewogICAgICAgICAgICAgICAgICAgICAgICAiaG91c2VfbGluZSI6ICLQlNCe0JwgMTIg0KHQotCg
IDEiLAogICAgICAgICAgICAgICAgICAgICAgICAicG9zdF9pbmRleCI6IDExOTAyMSwKICAgICAg
ICAgICAgICAgICAgICAgICAgIkhPVVNFX0dVSUQiOiAiZTBlMmEwNGItNWMwNS00NTk5LWE2ZGMt
MmU5MTNhODI4MTc5IgogICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIF0sCiAg
ICAgICAgICAgICAgICAiYWRkcmVzc19wb3N0X2luZGV4IjogMTE5MDIxLAogICAgICAgICAgICAg
ICAgImhvdXNlX21hdGNoIjogImV4YWN0IiwKICAgICAgICAgICAgICAgICJmbGF0X21hdGNoIjog
Im5vbmUiCiAgICAgICAgICAgIH0KICAgICAgICBdCiAgICB9Cn0=</fxs:Text>
      </fxs:GetSummaryResult>
    </fxs:GetSummaryResponse>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

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