What is geocoding?
Geocoding turns a written address into a point on the map: a latitude and a longitude. Everything else in the field is a variation on that one step.
Forward, reverse, batch
- Forward geocoding: an address in, coordinates out.
8 Boulevard du Port, Amiensbecomes49.897442, 2.290084. - Reverse geocoding: coordinates in, the nearest address out, with the distance to it.
- Batch geocoding: the same for a whole file or table, usually a CSV.
How exact is the point
| Precision | The point is |
|---|---|
house | the stored point of that house number |
interp | between two known houses on the street |
near | the nearest known house; the one asked for is not in the data |
street | the street, not the house |
city | the town only |
A geocoder that always returns a point hides this difference. Read the precision of every answer before you put it on a map or measure a distance from it: nothing instead of a wrong address.
Where the answer comes from
A geocoder matches your text against a reference list of addresses: a national address register, open data such as Overture Maps or OpenStreetMap, or a commercial database. Its answers are as complete and as fresh as that list, and no better.
An API or a local file
| Hosted geocoding API | Local file | |
|---|---|---|
| Where your addresses go | to the provider | nowhere |
| Cost | per request, after a free tier | none per request |
| Coverage | usually the whole world | the countries you download |
| Keeping the results | by the provider's terms | yours |
| To start | an account and a key | a download |
Prices of the hosted services: geocoding API pricing. The local way: a free geocoding API you run yourself.
What geocoding is not
- Address validation asks whether the address exists: address validation.
- Deliverability asks whether mail arrives there; that needs postal data.
- Routing asks how to travel between two points; that needs a road network.
- Place search finds a shop or a landmark by its name.
Try it
In the browser, with nothing to install: the live demo. On your own list: batch geocode a CSV.