Plan a round trip
plan_loopA round trip from one start back to it, of about distanceKm (5 to 200 km), when there is no destination: "a 60 km gravel ride from here". It sets off towards direction (degrees, 0 = north, 90 = east); another direction gives another loop, and when no loop fits the length the server tries other directions itself. Returns length, climb, duration, kilometres paved, unpaved and unknown, and an outline of about 40 [lon, lat] points; with report it adds the same parts as plan_route. Use plan_route when there are waypoints to pass or a different finish. Counts once per started 100 km; 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": {
"start": "<start>",
"distanceKm": "<distanceKm>"
},
"name": "plan_loop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| start | Yes | Start and finish as [lon, lat] | |
| report | No | Report parts about the loop found; none by default | |
| profile | No | Default bike | |
| speedKmh | No | Average speed for the weather timing, default 20 | |
| departure | No | ISO time with offset, for the weather; now by default | |
| direction | No | Degrees, 0 = north; default 0 | |
| distanceKm | Yes | Length of the loop in km, 5 to 200; the server tries a few times to come within 10% of it and returns the closest loop |