Plan a bike route
plan_routePlan cycling routes between waypoints using BRouter, returning distance, climb, time, surface breakdown, turn instructions, and a shareable link. Optionally export as GPX, GeoJSON, or KML.
Instructions
Plans a cycling route through the given waypoints with BRouter and returns distance, climb, estimated riding time, surface and way-type breakdown, turn instructions and a shareable bikerouter.de link. Waypoints may be coordinates or place names. Optionally saves the track as GPX/GeoJSON/KML.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile | No | Routing profile (default "trekking"). See list_profiles. | |
| save_to | No | File path to write the track to | |
| waypoints | Yes | Start, optional via points, and destination, in order | |
| track_name | No | Track name used inside the exported file | |
| avoid_areas | No | Circular areas the route should avoid | |
| save_format | No | Format for save_to (default gpx) | |
| straight_from | No | Waypoint indexes (0-based) whose following leg should be a straight beeline instead of routed | |
| include_geojson | No | Also return the raw GeoJSON track (large; off by default) | |
| profile_options | No | Profile parameter overrides sent as profile:NAME=VALUE, e.g. {"avoid_unsafe": true, "maxSpeed": 25}. Use get_profile_options to discover what a profile supports. | |
| alternative_index | No | 0 = best route (default); 1-3 request alternative routes | |
| turn_instructions | No | Include turn-by-turn instructions (default true) | |
| max_turn_instructions | No | Cap on listed turns (default 40) |