Stops along a route
stops_along_routePlaces to stop along a route: drinking water, food, groceries, toilets, bike shops and fuel by default; on request places to sleep, sights, charging points, benches and picnic sites. The route is GeoJSON in [lon, lat] order, such as {"type": "LineString", "coordinates": [[6.1432, 46.2044], [6.2, 46.15], [6.8694, 45.9237]]}, or a MultiLineString of sections in order; a route from plan_route works once you have its full line. Each stop comes with km (kilometres from the start along the route), offsetM (metres from the route to the place), category, subtype, name, [lon, lat] and, where OpenStreetMap has them, opening_hours, brand, fee and similar tags. Stops are sorted by km, nearest to the route first at the same km. How far off the route a place may be depends on the category: 150 m for water and toilets, 200 m for food, groceries, bike shops and fuel, 300 m for charging and picnic sites, 100 m for benches, 1 km for places to sleep and sights. gaps lists stretches of over 40 km with no water or food, with their start and end km; totals counts stops per category. A very long answer has its longest lists cut and says so. 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": {
"route": "<route>"
},
"name": "stops_along_route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| route | Yes | GeoJSON LineString or MultiLineString, coordinates as [lon, lat] | |
| categories | No | Categories to find; default water, food, grocery, toilets, bike, fuel |