Plan a route
plan_routeFinds a route on OpenStreetMap roads and paths through 2 to 50 waypoints, in the order given, and optionally reports on it. Returns length (km), climb (m), duration, kilometres paved, unpaved and unknown, kilometres per road type, and an outline of about 40 [lon, lat] points (not the full line). With report it adds, for the route found: the elevation profile, the weather at the time you reach each point, time zones, air quality stations, river gauges, map layers, surfaces or land cover. Use plan_loop instead for a round trip of a given length from one start, and route_report for a line you already have (a GPX track, a route from another app). If a waypoint cannot be reached with the profile (a pedestrian zone for a car, a footpath for a road bike) the answer is an error saying no route; move the point or change the profile. A route counts once per started 100 km (50 km for mtb); each report part counts 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": {
"points": "<points>"
},
"name": "plan_route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| points | Yes | Waypoints as [lon, lat], start first, finish last, e.g. [[6.1432, 46.2044], [6.8694, 45.9237]] | |
| report | No | Report parts about the route found; none by default | |
| profile | No | bike: touring bike on quiet roads and good tracks; city: a bike that keeps to cycleways and off busy roads; road-bike: fast on asphalt; quiet-road-bike: asphalt with as little traffic as possible; gravel: unpaved tracks welcome; mtb: trails; hiking: footpaths, mountain paths included; car; shortest: the shortest line on any way | bike |
| speedKmh | No | Average speed for the weather timing, default 20 | |
| departure | No | ISO time with offset, for the weather; now by default | |
| alternative | No | 0: the best route for the profile; 1 to 3: the first, second or third alternative, each a different way between the same waypoints (ask for them one at a time to compare) |