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
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 |