openrouteservice
App · 2 actions
Find addresses and estimate distance and travel time for driving, cycling and walking.
Find addresses and places
Turn an address or place name into map coordinates.
Inputs
- Address
addresstextRequired - An address or place name, such as Heidelberg, Germany.
- Limit
limitnumber - How many matches to return.From 1 to 40.
Outputs
dataobject- The response from openrouteservice.
Example output
{
"data": {
"features": [
{
"geometry": {
"coordinates": [
1
],
"type": "example"
},
"properties": {
"country": "example",
"gid": "example",
"label": "example",
"locality": "example",
"name": "example"
}
}
]
}
}Get directions between two points
Get a route, its length in meters and its estimated travel time in seconds.
Inputs
- Travel mode
modetextRequired - How you plan to travel.One of:
driving-car,cycling-regular,foot-walking. - Start latitude
start_latitudenumberRequired - Latitude of the starting point.From -90 to 90.
- Start longitude
start_longitudenumberRequired - Longitude of the starting point.From -180 to 180.
- End latitude
end_latitudenumberRequired - Latitude of the destination.From -90 to 90.
- End longitude
end_longitudenumberRequired - Longitude of the destination.From -180 to 180.
Outputs
dataobject- The response from openrouteservice.
Example output
{
"data": {
"features": [
{
"geometry": {
"coordinates": [
[
1
]
],
"type": "example"
},
"properties": {
"summary": {
"distance": 1,
"duration": 1
}
}
}
]
}
}