Routing
routingRouting / directions: compute the distance and travel time between two points for a given travel mode (drive, walk, bicycle, transit). Returns distance in meters and time in seconds. Example: routing({ from_lat: 48.8584, from_lon: 2.2945, to_lat: 48.8606, to_lon: 2.3376, mode: "drive" })
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Travel mode: 'drive', 'walk', 'bicycle', or 'transit' (default 'drive') | |
| to_lat | Yes | Latitude of the destination point | |
| to_lon | Yes | Longitude of the destination point | |
| _apiKey | No | Optional — your own Geoapify API key for higher limits; omit to use the shared Pipeworx key. | |
| from_lat | Yes | Latitude of the origin point | |
| from_lon | Yes | Longitude of the origin point |