This project is still in development and will be finalized and tested in the next couple of months, but now it makes the work of its customer easier.
Initially, the task was to develop a service that would facilitate the work with papers, since it takes a lot of time, and most of the documents that need to be drawn up are standard and they can be brought into a template.
Therefore, it was decided to develop such a web application, which can be indicated with a cadastral number, where he will subsequently collect all the data and draw up all the documents. Also, the web application must have its own file system in order to view previously generated documents.
Stages of work
At the moment, the application has basic functionality. The user can register and log in, as well as change the basic data about himself.
More important is the service itself, now you can specify the cadastral number to get brief information about it, as well as the coordinates of all the vertices of the plot boundaries and the generated json of the plot boundaries for subsequent work with the Yandex.map.
What were the difficulties?
With the generation of the necessary files, it so happened that the parser that can take data from the Rosreestr website, about the cadastral number, as well as the boundaries of the site, is written in python, and everything else is done in laravel + react. Therefore, it was decided to use the php library to connect to ssh, and then start the parser itself.
Subsequently, I ran into a problem with access rights on the server, since ssh created all files as root, so any editing of the file from php did not work and I had to change the rights to further edit files using the ssh connection again.
How does search work?
After specifying the cadastral number and clicking on the search button, it is important for us to check the cadastral numbers for correctness, since there are a couple of zeros in the Russian registry itself that should not be and their site removes these zeros, but not always, but according to its own pattern. Therefore, I had to first write a specific filter of data zeros so that the parser could work without errors.
In the future, I already sent a request to the parser, which did its job. He downloaded all the information and stored it in json, as well as separately stored in the json file all the coordinates with which you need to work later.
When all the data is ready, they are immediately displayed in text format, and since we need to rebuild the coordinates in the format that Yandex.map requires, the map is loaded with a slight delay.
What should be done?
Create a new stage of collecting information, but already in the text template and, as a result, download it and add the ability to correct it.
After the file system where you can, in which case, find already collected data on the cadastral number.