# openrouteservice

> Find addresses and estimate distance and travel time for driving, cycling and walking.

App · 2 actions. Web page: https://docs.lodol.com/docs/integrations/openrouteservice

## Actions

### Find addresses and places

Turn an address or place name into map coordinates.

**Inputs**

- Address (`address`, text, required): An address or place name, such as Heidelberg, Germany.
- Limit (`limit`, number): How many matches to return. From 1 to 40.

**Outputs**

- `data` (object): The response from openrouteservice.

**Example output**

```json
{
  "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 (`mode`, text, required): How you plan to travel. One of: `driving-car`, `cycling-regular`, `foot-walking`.
- Start latitude (`start_latitude`, number, required): Latitude of the starting point. From -90 to 90.
- Start longitude (`start_longitude`, number, required): Longitude of the starting point. From -180 to 180.
- End latitude (`end_latitude`, number, required): Latitude of the destination. From -90 to 90.
- End longitude (`end_longitude`, number, required): Longitude of the destination. From -180 to 180.

**Outputs**

- `data` (object): The response from openrouteservice.

**Example output**

```json
{
  "data": {
    "features": [
      {
        "geometry": {
          "coordinates": [
            [
              1
            ]
          ],
          "type": "example"
        },
        "properties": {
          "summary": {
            "distance": 1,
            "duration": 1
          }
        }
      }
    ]
  }
}
```
