foncier_geocode
Geocode a French address → coordinates, canonical label, INSEE code.
Returns candidates (label, score, lat, lon, citycode, postcode, type), best
first. The BAN label is a canonical address key (two spellings converge on one
point). type grades the match: housenumber (exact door) > street > locality >
municipality — a locality answer to a numbered query is NOT the address.
Postcode fallback: SIRENE addresses often carry the commune's generic postcode
(80000 Amiens) while the BAN indexes the real one for that stretch (80090). The
query then yields only a low-score locality. When the query carries a street
number and no housenumber comes back, this retries WITHOUT the postcode (both
the argument and the one written in the address) — those candidates are tagged
relaxed="postcode". If that still finds no housenumber, every candidate is
tagged warning="no_housenumber_match": treat them as approximate.
The reverse direction (point → nearest address) is foncier_site(op="adresse").
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"adresse": "<adresse>"
},
"name": "foncier_geocode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _org | No | Org (id) de CET APPEL. `oto_list_orgs()`. | |
| limit | No | max candidates (default 5). | |
| _group | No | Équipe (id) de CET APPEL, sous son org parente. | |
| _run_id | No | OBLIGATOIRE à chaque appel dès `run_start` ou `data_claim_next` : sans lui, l'écriture sur une ligne réservée est refusée. Hérité seulement si le serveur tient un run actif — n'y compte pas. | |
| adresse | Yes | free-form address (e.g. "44 la canebière marseille"). | |
| _project | No | Projet (id) de CET APPEL — jeton PRIMAIRE. `oto_project(op='list')`. | |
| _instance | No | Instance de connecteur PRÉCISE (un credential exact). `oto_instance(op='list')`. | |
| code_postal | No | restrict to a postcode. | |
| code_commune | No | restrict to an INSEE commune code. Safer than code_postal to narrow a search — a commune code is stable, a postcode is not. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |