<!-- Markdown copy of https://gridpin.dev/what-is-geocoding for agents. The page there is the canonical one. -->
Title: What is geocoding? Forward, reverse and batch geocoding explained
Source: https://gridpin.dev/what-is-geocoding

# 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](https://gridpin.dev/guides-task-geocode) [Command line](https://gridpin.dev/guides-where-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

| 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](https://gridpin.dev/geocoder-without-wrong-answers).

## 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](https://gridpin.dev/geocoding-prices). The local way: [a free geocoding API you run yourself](https://gridpin.dev/free-geocoding-api).

## What geocoding is not

- **Address validation** asks whether the address exists: [address validation](https://gridpin.dev/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](https://gridpin.streamlit.app). On your own list: [batch geocode a CSV](https://gridpin.dev/geocode-csv).

## More

- [Geocoding incident addresses](https://gridpin.dev/geocoding-crime-analysis)
- [Maps in BI tools without a geocoding service](https://gridpin.dev/bi-geocoding)
- [Offline geocoding in Python](https://gridpin.dev/offline-geocoding-python)
- [Batch geocode a CSV or an Excel list](https://gridpin.dev/geocode-csv)
- [Geocode inside DuckDB](https://gridpin.dev/duckdb-geocoding)
- [Geocode addresses in QGIS, offline](https://gridpin.dev/qgis-geocoding)
- [All guides and countries](https://gridpin.dev/guides)
- [Documentation](https://gridpin.dev/docs)
