France address geocoder (Base Adresse Nationale) and communes
French national address base (BAN): turn a French address into coordinates and an INSEE commune code, find the address nearest a coordinate, and look up communes with their population, postcodes, department and region.
No API key needed to call
- Source
- Base Adresse Nationale and API Geo (Etalab, DINUM)
- Licence and terms
- Licence Ouverte 2.0 (Etalab)
- Coverage
- France (metropolitan and overseas)
- Refresh cadence
- Answers are shared and cached for 21600 seconds.
Questions you can ask
- Where is 8 boulevard du Port in Amiens?
- What French address is nearest to 48.357 N, 2.37 E?
- How many people live in Lyon and what are its postcodes?
Operations
Geocode a French address
Answers: what are the coordinates, postcode and INSEE commune code of a French address or place name, with a match score? Best matches first.
| q | required, string, Free-text French address or place. |
|---|---|
| postcode | optional, string, Restrict to this postcode. |
| limit | optional, integer, default 3, How many candidates. |
Example: Where is 8 boulevard du Port in Amiens?
Over MCP
{"tool":"call_connector_operation","arguments":{"connector":"ban","operation":"ban_geocode","params":{"q":"8 bd du port Amiens","limit":2}}}Over HTTP
curl '/v1/connectors/ban/ban_geocode?q=8+bd+du+port+Amiens&limit=2'Nearest French address to a coordinate
Answers: what is the nearest French address or street to a longitude and latitude?
| lon | required, number, Longitude in degrees (France incl. overseas territories). |
|---|---|
| lat | required, number, Latitude in degrees. |
| limit | optional, integer, default 1, How many candidates. |
Example: What French address is nearest to 48.357 N, 2.37 E?
Over MCP
{"tool":"call_connector_operation","arguments":{"connector":"ban","operation":"ban_reverse","params":{"lon":2.37,"lat":48.357}}}Over HTTP
curl '/v1/connectors/ban/ban_reverse?lon=2.37&lat=48.357'Search French communes
Answers: what are the INSEE code, postcodes, population, area, department and region of a French commune, by name or INSEE code or postcode?
| nom | optional, string, Commune name or beginning of it. |
|---|---|
| code | optional, string, INSEE commune code. |
| postcode | optional, string, Postcode. |
| limit | optional, integer, default 5, How many communes. |
Example: How many people live in Lyon and what are its postcodes?
Over MCP
{"tool":"call_connector_operation","arguments":{"connector":"ban","operation":"ban_communes","params":{"nom":"Lyon","limit":2}}}Over HTTP
curl '/v1/connectors/ban/ban_communes?nom=Lyon&limit=2'Source notice
Source: Base Adresse Nationale, adresse.data.gouv.fr, and API Geo, geo.api.gouv.fr. Terms were not quoted here: see the terms page. The data are reusable under the French Licence Ouverte (Etalab Open Licence) with the source and date of the last update acknowledged. Values are trimmed and reordered here; the publisher does not endorse this presentation.