Answer the question
In order to leave comments, you need to log in
How to get municipal divisions from FIAS?
Now I can, with a request, build addresses, only by administrative-territorial division!
And on the website fias.nalog.ru, it is said that "ATTENTION! IN 2019 THE UPLOADING OF ADDRESS INFORMATION FROM THE STATE ADDRESS REGISTER WILL BE CHANGED. DATA WILL BE SUBMITTED ONLY IN THE FIAS FORMAT (MUNICIPAL DIVISION)!" Tell me, maybe someone came across how to construct addresses on municipal division?
Answer the question
In order to leave comments, you need to log in
As far as I understand, it is necessary to take the base of the all-Russian classifier of the territories of the municipality ... and compare it with the FIAS base using its codes (OKTMO). I'm going to try this myself, but I'm just gathering information for now.
This means that in the new version the addresses are linked by GUID - we take some object with AOLEVEL=1 (Republic), we take it myid=AOGUID, we find its child objects PARENTGUID=myid - we get cities (AOLEVEL=4) and districts (AOLEVEL=3) , then you can also get settlements in them for districts.
The point is that the kladr database does not store the history of addresses, and in the new database you can build an address that was on a specific date - before renaming. (fields STARTDATE and ENDDATE)
In most cases, only the current address is needed - so I had to write a converter (which takes only actual addresses) - otherwise the base is too bold, and if you take it for the whole country, it's generally tin. And then update if there are changes.
In general, everything seems to be clear in the documentation ...
PS I am writing synchronization from FIAS to the corporate database (Electricity) - I had to study the entire structure.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question