plan_route
Plans road-cycling loops, out-and-backs, and one-way routes by start/end, target distance, and flow, climb, or flat preference, returning ranked route options.
Instructions
Plan routes. mode: loop | out_and_back | one_way. start/end: 'lat,lon' or a place name (geocoded; the resolved place is echoed). Loops and out-and-backs need length_km (+-10%) or min_km and max_km; one_way needs end and ignores length. objective: flow (fewest stops/turns) | climb | flat. return_mode: same | free. settings: optional dict from list_presets (e.g. turn_cost, lane_bonus, weights; main_road_penalty 1..5 multiplies the cost of primary, secondary and trunk roads, 2.5 = 'quiet roads' preset). Loops take 30-60 s. Returns a markdown table of ranked routes (use the ids with route_details / export_gpx) plus plan notes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | ||
| end | No | ||
| mode | Yes | ||
| start | Yes | ||
| max_km | No | ||
| min_km | No | ||
| bearings | No | ||
| settings | No | ||
| length_km | No | ||
| objective | No | flow | |
| return_mode | No | same |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |