Generate routes
generate_routesUse this when someone wants a cycling, running or walking route that starts and finishes at the same place, with a target distance or duration and optional climbing and scenery preferences. Do not use it for directions from one place to another or for driving. Shows the routes on a map where the host supports it, and always returns a link that opens the same request in Remap. Give either start (place text such as "Tempelhofer Feld, Berlin") or lng and lat, never both. When the person has not said where, call generate_routes without a start: the map asks for the person’s location and generates routes from there.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | No | Start latitude in degrees, when the start is known as a coordinate. | |
| lng | No | Start longitude in degrees, when the start is known as a coordinate. | |
| sport | Yes | The activity. Walking generates foot routes at walking pace. | |
| start | No | Where the route starts and finishes, as place text (a town, park, street or address). | |
| climbing | No | flat avoids hills, balanced neither seeks nor avoids them, hilly looks for climbs. | |
| distance | No | Target distance of the whole route. | |
| environments | No | Scenery to favour where the area has it. forest: through forest; parks: through parks and nature reserves; waterside: along rivers, canals and lakes; coast: along the coastline; climbs: over hills worth climbing; quiet_streets: through calm residential streets and lanes; long_stretches: along long, quiet, uninterrupted stretches; cycle_routes: following signed cycle routes (cycling only). | |
| distance_unit | No | Unit of distance: km or mi. Defaults to km. | |
| duration_minutes | No | Target duration in minutes, instead of a distance. |