reverse_geocode
Benennt, was an einer KOORDINATE liegt — die Orte, in denen sie liegt („was liegt bei <lat,lon>"), mit level eine bestimmte Ebene davon, mit level='street' die nächste Adresse oder Straße (der Lookup für eine GPS-Startposition). Abgrenzung: den Weg zurück (Name → Koordinate und OSM-Ids) geht search_place, die fahrbare Halte-Id liefert die Ortsauflösung, und nearby listet auf, was UM eine Koordinate liegt, statt den Punkt selbst zu benennen. Pflicht: lat und lon — geschrieben auch latitude/longitude, so wie nearby die Koordinate nimmt; je Aufruf nur eine der beiden Schreibweisen. Optional: radius_m (Reichweite der nächsten Adresse in METERN, Default 500, höchstens 5000; ein Ort, IN dem die Koordinate liegt, hat Abstand 0 und ist immer dabei), limit (Höchstzahl Treffer, Default 10, Maximum 50) und level — 'place' (Default: alle Orte an der Koordinate, kleinster zuerst), 'city' (die Stadt/Gemeinde), 'suburb' (der Stadt- oder Ortsteil) oder 'street'. Kennt die Karte die gewünschte Ebene hier nicht, antwortet die nächst-gröbere, erkennbar am place_type; ein unbekannter Wert wirkt wie 'place'. Anleitung: get_usage_guide mit tool='reverse_geocode'. Anti-Fab: nur die zurückgegebenen Orts- und Straßen-Namen verwenden, einschließlich der Hausnummer aus der Karte — nie eine erfinden.
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": {
"lat": "<lat>",
"lon": "<lon>"
},
"name": "reverse_geocode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | Yes | Latitude of the coordinate to reverse-geocode. Also accepted spelled `latitude`, the way the vicinity search takes it — one of the two spellings per call. | |
| lon | Yes | Longitude of the coordinate to reverse-geocode. Also accepted spelled `longitude`, the way the vicinity search takes it — one of the two spellings per call. | |
| level | No | Optional resolution level. `"place"` (default) answers with the places the coordinate lies in, the smallest first (part of a town → town → county → state); `"city"` with the town/municipality it lies in; `"suburb"` with the part of the town; `"street"` with the nearest ADDRESS or STREET, with its house number where the map knows one there — the level needed to label a real GPS start position. Where the map has no place at the requested level, the next coarser one answers, recognisable by its `place_type`. Any other / omitted value behaves as `"place"`. | |
| limit | No | Optional maximum number of hits, the smallest place first. Default 10, upper bound 50; a larger value is served as 50 and `0` as the default. Applies to every level and with or without `radius_m`. | |
| format | No | Answer serialisation: `"toon"` (default) or `"json"` — the detail is in `get_usage_guide`. **An agent leaves this out.** | |
| radius_m | No | Optional radius in METRES: how far the nearest address may lie, for the `street` level and the part of a town read off it. 500 when omitted, at most 5000. A place the coordinate LIES INSIDE is at distance 0 and is answered whatever the radius. |