Dennery AgentNative

All API connectors

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

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.

qrequired, string, Free-text French address or place.
postcodeoptional, string, Restrict to this postcode.
limitoptional, 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?

lonrequired, number, Longitude in degrees (France incl. overseas territories).
latrequired, number, Latitude in degrees.
limitoptional, 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?

nomoptional, string, Commune name or beginning of it.
codeoptional, string, INSEE commune code.
postcodeoptional, string, Postcode.
limitoptional, 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.