On va où ? Routing API
v0.2.0Address geocoding and bike, scooter, motorcycle, wheelchair and walking routes across Europe.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
compute_route Compute a bike, scooter, motorcycle, wheelchair or walking route (Europe)
Computes up to three routes (safe, balanced, fast) between two points in Europe for a bike, e-bike, kick scooter, motorcycle, wheelchair or on foot, with the share of cycle lanes, unpaved surfaces, main roads and motorways, the climb, and turn-by-turn steps. Use it to plan a safe cycling commute, compare a safe and a fast option, check wheelchair accessibility of a trip, or plan a motorcycle trip avoiding tolls or motorways. Points are given as longitude/latitude: when you only have an address, a place name or a station, call geocode_address first and pass the coordinates it returns.
| Parameter | Type | Description |
|---|---|---|
destination * | object | End point |
origin * | object | Start point |
avoid | array | ferries, steps; tolls and highways (moto); unpaved and steep (wheelchair) |
include_elevation_profile | boolean | Include the elevation profile (up to 100 points) |
include_geometry | boolean | Include the encoded polyline (Google algorithm, precision 5) |
include_steps | boolean | Include turn-by-turn instructions |
language | string | Language of the turn-by-turn instructions |
mode | string | bike, ebike, scooter (kick scooter), moto (motorcycle), wheelchair, foot |
variants | array | Which variants to return (default: all three) |
waypoints | array | Up to 8 intermediate stops, in order |
geocode_address Find the coordinates of an address or a place (Europe)
Turns an address, a place name, a station or a point of interest into longitude/latitude coordinates, which are exactly what compute_route expects as origin, destination or waypoint. Call this first whenever the user names a place instead of giving coordinates. Returns up to five candidates, best first, each with a full label, its coordinates, its type (address, street, locality, region, country, venue for a named place such as a station or a monument, or other) and a confidence score, so an ambiguous name can be disambiguated before routing. Narrow the search with `near` (bias the ranking aro…
| Parameter | Type | Description |
|---|---|---|
query * | string | Address, place name or point of interest, 2 to 200 characters, for example "10 rue de Rivoli, Paris" or "Gare de Rennes" |
country | string | Restrict to one country, ISO 3166-1 alpha-2 code, for example FR or BE |
language | string | Language of the returned labels. en, fr and de are honoured; it is accepted but the geocoder does not label in Italian, and the labels then come back in the local language of each place (Milano, Münc… |
limit | integer | Number of candidates to return, 1 to 5 |
near | object | Bias the ranking towards this point, typically the other end of the trip. It does not restrict the search, but the point itself must be inside the European coverage: anywhere else is refused with 422… |