create_route_from_to
Create a route between two coordinates with optional waypoints, returning a GPX representation. Supports driving, cycling, hiking, and other travel modes.
Instructions
Create a route from a starting location coordinates to a destination, optionally with waypoints.
Args: route_type: Type of route, e.g. "driving-car", "cycling-mountain", "cycling-regular", "foot-hiking" from_coordinates: Starting location as [longitude, latitude] to_coordinates: Destination location as [longitude, latitude] waypoints: optional list of waypoints coordinates as [[lon, lat], ...]
Returns: GPX representation of the route
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": {
"route_type": "<route_type>",
"from_coordinates": "<from_coordinates>",
"to_coordinates": "<to_coordinates>"
},
"name": "create_route_from_to"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| route_type | Yes | ||
| from_coordinates | Yes | ||
| to_coordinates | Yes | ||
| waypoints | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |