On va où ? Routing API

v0.2.0
app.onvaou/itineraires Checked 3 days ago Published 2 months ago

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

ParameterTypeDescription
destination *objectEnd point
origin *objectStart point
avoidarrayferries, steps; tolls and highways (moto); unpaved and steep (wheelchair)
include_elevation_profilebooleanInclude the elevation profile (up to 100 points)
include_geometrybooleanInclude the encoded polyline (Google algorithm, precision 5)
include_stepsbooleanInclude turn-by-turn instructions
languagestringLanguage of the turn-by-turn instructions
modestringbike, ebike, scooter (kick scooter), moto (motorcycle), wheelchair, foot
variantsarrayWhich variants to return (default: all three)
waypointsarrayUp 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…

ParameterTypeDescription
query *stringAddress, place name or point of interest, 2 to 200 characters, for example "10 rue de Rivoli, Paris" or "Gare de Rennes"
countrystringRestrict to one country, ISO 3166-1 alpha-2 code, for example FR or BE
languagestringLanguage 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…
limitintegerNumber of candidates to return, 1 to 5
nearobjectBias 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…