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.

Geocode addresses Command line

Forward, reverse, batch

  • Forward geocoding: an address in, coordinates out. 8 Boulevard du Port, Amiens becomes 49.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

PrecisionThe point is
housethe stored point of that house number
interpbetween two known houses on the street
nearthe nearest known house; the one asked for is not in the data
streetthe street, not the house
citythe 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 APILocal file
Where your addresses goto the providernowhere
Costper request, after a free tiernone per request
Coverageusually the whole worldthe countries you download
Keeping the resultsby the provider's termsyours
To startan account and a keya 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.