Generate routes
generate_routesUse this when someone wants a cycling (road or gravel), running, trail running, walking or hiking route that starts and finishes at the same place, with a target distance or duration and optional climbing, scenery, style and route preferences, or a trip from a start to a destination, split into days (give destination, or dest_lng and dest_lat; distance or duration is then the longest day). Do not use it 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.
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": {
"sport": "<sport>"
},
"name": "generate_routes"
}
}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. gravel generates gravel bike routes that welcome unpaved roads and tracks; walking generates foot routes at walking pace; hiking and trail_running seek trails and never use a path rated above the level of the style; a path with no rating is priced by an estimate and labelled as unrated. touring is a bike tour over several days and needs a destination; each night ends near a mapped bed where one is in reach. | |
| start | No | Where the route starts and finishes, as place text (a town, park, street or address). | |
| style | No | The route style, one the activity offers, or under e_bike one of the e-bike styles; leave it out for its usual style. balanced: Smooth roads, busier ones only when they save real distance (cycling); fast: Direct main roads, smooth surfaces (cycling); quiet: Calm streets and protected lanes (cycling); balanced: Quiet streets, parks and paths (running, walking); night: Lit and calm after dark (running, walking); balanced: Gravel roads and tracks, linked by quieter roads. Busier ones only when they save real distance. (gravel); quiet: Gravel roads and tracks, linked by calm streets and protected lanes. (gravel); easy: Well-made paths, no steep ground (hiking); moderate: Steeper, rougher paths, nothing exposed (hiking); hard: Can include exposed and alpine ground. Know your limits (hiking); easy: Well-made paths, no steep ground (trail_running); moderate: Steeper, rougher paths, nothing exposed (trail_running); hard: Can include exposed and alpine ground. Know your limits (trail_running); balanced: Smooth roads, busier ones only when they save real distance (touring); quiet: Calm streets and protected lanes (touring); road: Smooth roads and protected lanes (e_bike); mixed: Roads and firm tracks, whichever rides better (e_bike); gravel: Gravel roads and tracks, linked by quieter roads. Busier ones only when they save real distance. (e_bike). | |
| e_bike | No | true when the person rides a pedal-assist e-bike (cycling or gravel only): climbs cost less and times use e-bike speed. With gravel it is the e-bike on its gravel style. | |
| climbing | No | flat avoids hills, balanced neither seeks nor avoids them, hilly looks for climbs. | |
| dest_lat | No | Destination latitude in degrees, when the destination is known as a coordinate. | |
| dest_lng | No | Destination longitude in degrees, when the destination is known as a coordinate. | |
| distance | No | Target distance of the whole route; for a trip to a destination, the longest day. | |
| destination | No | Where a trip ends, as place text. With a destination Remap plans a trip from the start to it, split into days, and climbing and scenery do not apply. | |
| preferences | No | Route preferences the person asked for, as name:value, each laid over the style. `any` or `no` clears one the style sets. road_comfort (cycling, touring, gravel): The main way to control how your rides feel on the road: quiet, standard, direct; traffic_separation (cycling, touring, gravel): How much your rides should hold out for cycling space away from motor traffic: marked, separated, any; avoid_shared_paths (cycling, touring, gravel): Steer away from paths and cycleways where you must share with pedestrians: yes, no; mapped_cycle_routes (cycling, touring, gravel): Stick to signed or mapped cycling routes when they're available: auto, prefer, prioritize, any; paved_surface (cycling, touring, gravel): The roughest paved surface you're happy riding on: smooth, fair, coarse, rough, any; unpaved_tolerance (cycling, touring): Whether your rides can include unpaved roads and tracks: avoid, firm; intersections (cycling, touring, gravel): Cut down on traffic lights, stop signs, and crossings on your rides: avoid, strongly_avoid, any; turns (cycling, touring, gravel, running, trail_running, walking, hiking): Prefer longer, straighter stretches with fewer turns and less time crossing or waiting for traffic: fewer, minimal, any; avoid_ferries (cycling, touring, gravel): Skip ferry crossings entirely: yes, no; traffic_volume (cycling, touring, gravel): Stay off roads that carry a lot of motor traffic: avoid, strongly_avoid, any; lighting (cycling, touring, gravel, running, walking): Prefer roads with street lighting, useful for early morning or evening rides: prefer, prioritize, any; surface (running, walking): The ground you'd rather be on: road, mixed. | |
| 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. | |
| speed_limit_kmh | No | Avoid roads at or above this speed limit, unless the road has a separated or marked cycle lane. In km/h, from 20 to 100, for cycling, touring, gravel. | |
| duration_minutes | No | Target duration in minutes, instead of a distance; for a trip, the longest day. |