Turn a sentence into an Overpass query
overpass_translateTurns a sentence in English, German, French or Italian, such as "cafés with outdoor seating in Zürich" or "hotels between Bern and Thun", into an Overpass QL query, with the translator of overpass.ch. It does not run the query. The answer says how the sentence was read, gives the query, notes when the query finds more than the sentence asks for (opening hours, for example, are not part of Overpass QL), and other readings of the thing and the place. Write places as on an envelope, with their region or country ("huts above 2500 m in Wallis, Switzerland", "cafés in Springfield, Illinois"): the geocoder looks up place names around the world, and a name alone can be a village elsewhere. Check how the answer read the place; when it is not the place meant, call again with the region or country in the sentence, or with within. within keeps the places to a box (a canton, a country), and a sentence without a place, such as "cafés nearby", searches in it; near is the position of the user. One call counts as one request.
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": {
"sentence": "<sentence>"
},
"name": "overpass_translate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| near | No | the position of the user, for sentences such as "near me" or "the nearest pharmacy" | |
| within | No | only places in this box count, and a sentence without a place searches in it | |
| language | No | language of the names and addresses; the local names when not set | |
| sentence | Yes | what to find and where, in words, up to 500 characters |