📜 ⬆️ ⬇️

DaData.ru turns guides into addresses and knows all the kids in the sky



DaData.ru is a service for automatic verification and correction of contact information (name, addresses, telephone numbers, email, passports). Plus javascript-widget and API prompts when entering the address, name, organization and bank details.

In the previous issue, Dadat walked through passports and banks, and over the summer took on helping online stores with delivery:


City district at


The person writes the address, and Dadata identifies the area of ​​the city. Useful for online stores - calculate the cost of delivery depending on the area or segment the customer base by area.
')
Works for Moscow, St. Petersburg and cities with a population of more than 500 thousand. In the tips , files and through the API standardization .


Address by the rules of the Russian Post


According to the rules of the Post Office, if the city is the center of the region, then the name of the region is not written on the envelope ( Novosibirsk Region , Novosibirsk, Abakanskaya St., 21 ). And if the city is the center of the district, then the name of the district is not spelled ( Moscow Region, Odintsovsky District , Odintsovo Street, Raketchikov Street ).

Dadata is able to form an address in one line according to these rules in prompts , files and through the standardization API .


Mailboxes and addresses on demand


If the letter contains the address to the post office (“on demand” or the mailbox number), the addressee will receive it. But delivery of goods to such an address is meaningless.

Dadata distinguishes these addresses from all others and marks them with the tag “Before the post office”:



Address search by FIAS code


Address in Russia consists of a dozen other fields. It is inconvenient to store it in the database with separate fields: many CMS and online store engines do not contain the required fields.

To store the address in one line is easier. But then it will not be possible to segment the client base by cities, to determine geo-coordinates, to print the address on the envelope as expected (a separate city, a separate street-house-apartment).

The developer’s usual solution is to store a unique address identifier instead of a sheet of individual fields. Such an identifier is, it is assigned by the tax service in the Federal Information Address System (FIAS). The FIAS identifier looks weighty: 5f96fd6b-b3de-451f-b280-8fedf859e683 .

Store a unique identifier conveniently. But the buyer and the Post of Russia will not show it. Therefore, it is very good to store the FIAS street identifier in the database and turn it into a full address upon request. It is better to keep a house, a building and an apartment in separate fields, because not all tenants pay taxes in the tax base there are no apartments and many houses.

Exactly this is what the API Dadat does: returns the address according to the FIAS code . Searches to the street inclusive:



Free up to 10 thousand requests per day.

We hope that you will benefit from one of the above. Get connected, try, ask questions in the comments or on the forum !

Source: https://habr.com/ru/post/267997/


All Articles