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

AddressaddresstextRequired
An address or place name, such as Heidelberg, Germany.
Limitlimitnumber
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 modemodetextRequired
How you plan to travel.One of: driving-car, cycling-regular, foot-walking.
Start latitudestart_latitudenumberRequired
Latitude of the starting point.From -90 to 90.
Start longitudestart_longitudenumberRequired
Longitude of the starting point.From -180 to 180.
End latitudeend_latitudenumberRequired
Latitude of the destination.From -90 to 90.
End longitudeend_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
          }
        }
      }
    ]
  }
}

On this page