Address validation on your own machine
Address validation asks one question: does this address exist as written? GridPin answers it from the open address data of the country, without sending the address anywhere. It does not tell you whether mail is delivered there.
Clean and compare Command line Server, Docker Python Retail, e-commerce Utilities
One address
$ gridpin exists spain.bin "Calle Gran Via 9999, Madrid"
{"exists":"no","reason":"number_not_on_street"}
The street is real and the number is not on it. The reason is part of the answer, so a form can say what to fix.
A whole list
$ gridpin batch spain.bin form.csv form_out.csv --with exists $ cut -d, -f1,2,13,14 form_out.csv # id, address, gp_exists, gp_exists_reason (see /docs#exists)
Two columns are added to every row: gp_exists and gp_exists_reason. Sort by the reason to see what is wrong with the list: missing towns, numbers that are not on the street, streets the data does not know. The columns and a worked list: does the address exist; cleaning the list afterwards: a customer address list in an afternoon.
One command from Python
$ pip install offline-address-check $ offline-address-check "8 rue de Rivoli, Paris" --country fr yes house_found 8 Rue de Rivoli, 75004 Paris 4e Arrondissement
The exit code is 0 for yes and 1 otherwise, so a script can branch on it. A line without a town or a postcode is never yes: the same street name may exist in another town.
Behind a web form
The local server answers the same question at /v1/exists, so a checkout or a sign-up form can check an address before it is saved, without a third party seeing it. Ready-made for WooCommerce; suggestions while typing: address autocomplete.
Validation, verification, deliverability
| The word | The question | Answered here? |
|---|---|---|
| Address validation | Does the address exist as written? | Yes: street, house number and postcode against the country's address data |
| Address standardization | How is it spelled officially? | Yes: the answer carries the spelling the data holds |
| Address verification, deliverability (USPS DPV, CASS) | Is mail delivered there? Is the flat real? Is it vacant? | No: that lives in postal data, not in open address data |
| Proof of address | Does this person live there? | No: GridPin holds no names |
Services that sell address verification usually mean the third row. If you need a delivery guarantee, you need postal data. If you need to know that the address is real before it enters your database, this is enough: what GridPin checks, and what it does not.
Limits
- Houses, not flats or floors.
- A house built after the data was published is not there; each file names its build date.
- Only the countries of the release.