# OSRM

> Road routing on OpenStreetMap data: directions with distance and travel time, travel-time tables between many places, the quickest order to visit a list of stops, the nearest road to a point, and GPS tracks snapped to roads. By car, bicycle or on foot, with no account needed, or on your own OSRM server.

App · 5 actions. Web page: https://docs.lodol.com/docs/integrations/osrm

## Actions

### Find the nearest road

Find the roads closest to a point, with each road's name, how far away it is and the nearest spot on it. Handy for moving a pin dropped in a car park or a field onto the road a driver can reach.

**Inputs**

- Latitude (`latitude`, number, required): Decimal degrees, -90 to 90 (north is positive). From -90 to 90.
- Longitude (`longitude`, number, required): Decimal degrees, -180 to 180 (east is positive). From -180 to 180.
- Number of roads (`number_of_results`, number): How many of the nearest roads to return. From 1 to 10. Default: `1`.
- Travel by (`travel_mode`, text): How the trip is made. On your own OSRM server, the modes it offers depend on how it was set up. One of: `car`, `bike` (Bicycle), `foot` (On foot). Default: `car`.

**Outputs**

- `latitude` (number): The latitude you gave.
- `longitude` (number): The longitude you gave.
- `nearest` (object): The nearest road.
- `roads` (list): The nearest roads, closest first.
- `summary` (text): One line naming the nearest road.
- `travel_mode` (text): How the trip was made: 'car', 'bike' or 'foot'.

**Example output**

```json
{
  "latitude": 52.5163,
  "longitude": 13.3777,
  "nearest": {
    "distance_meters": 36.7,
    "distance_text": "37 m (120 ft)",
    "latitude": 52.51634,
    "longitude": 13.378236,
    "road": "Pariser Platz"
  },
  "roads": [
    {
      "distance_meters": 36.7,
      "distance_text": "37 m (120 ft)",
      "latitude": 52.51634,
      "longitude": 13.378236,
      "road": "Pariser Platz"
    },
    {
      "distance_meters": 36.8,
      "distance_text": "37 m (121 ft)",
      "latitude": 52.516317,
      "longitude": 13.378241,
      "road": "Pariser Platz"
    }
  ],
  "summary": "Nearest road: Pariser Platz, 37 m (120 ft) away",
  "travel_mode": "car"
}
```

### Get directions

Find the road route from a start to a finish, through any stops in between, in the order given. Returns the distance (km and miles) and travel time, each leg between stops, and, if you want them, turn-by-turn directions and the route line for a map. Have an address instead? Look it up first with OpenStreetMap Nominatim's 'Search for places' step and use its latitude and longitude.

**Inputs**

- Stops (`stops`, list, required): The start, any stops on the way, and the finish, in order. Add a row for each, with its latitude and longitude. Up to 50.
- Travel by (`travel_mode`, text): How the trip is made. On your own OSRM server, the modes it offers depend on how it was set up. One of: `car`, `bike` (Bicycle), `foot` (On foot). Default: `car`.
- Turn-by-turn directions (`include_steps`, true/false): Include each turn as a sentence, such as 'Turn left onto Main Street', with its distance. Default: `false`.
- Route line (`route_line`, text): Include the line of the route, for drawing it on a map. Simplified is plenty for a small map. One of: `none` (Don't include), `simplified`, `full` (Full detail). Default: `none`.
- Line format (`line_format`, text): How the line is written. An encoded polyline is short text that Google Maps and Mapbox can draw; GeoJSON lists every coordinate. Only when Route line is Simplified or Full detail. One of: `polyline` (Encoded polyline (Google Maps, Mapbox)), `polyline6` (Encoded polyline, 6-digit precision), `geojson` (GeoJSON coordinates). Default: `polyline`.

**Outputs**

- `directions` (text): The turn-by-turn directions as a numbered list, one step per line. Empty unless they were asked for.
- `distance_km` (number): The distance in kilometres, to 2 decimals.
- `distance_meters` (number): The distance in metres.
- `distance_miles` (number): The distance in miles, to 2 decimals.
- `distance_text` (text): The distance to read, in both units, e.g. '4.7 km (2.9 mi)'.
- `duration_minutes` (number): The travel time in minutes, to 1 decimal.
- `duration_seconds` (number): The travel time in seconds.
- `duration_text` (text): The travel time to read, e.g. '12 min' or '1 h 5 min'.
- `legs` (list): One leg per pair of consecutive stops.
- `route_line` (text): The route's line as an encoded polyline, when a route line in that format was asked for. Google Maps and Mapbox can draw it.
- `route_line_geojson` (object): The route's line as a GeoJSON LineString ({type, coordinates}, each coordinate longitude first), when GeoJSON was asked for.
- `stops` (list): The stops, in the order you gave them.
- `summary` (text): One line about the route, e.g. '5.8 km (3.6 mi), about 12 min by car from Brandenburg Gate to Alexanderplatz'.
- `travel_mode` (text): How the trip was made: 'car', 'bike' or 'foot'.

**Example output**

```json
{
  "directions": "1. Head south on Pariser Platz (18 m)\n2. Keep left onto Pariser Platz (86 m)\n3. Continue onto Unter den Linden (1.3 km)\n4. Continue onto Schlo\u00dfplatz (B 2; B 5) (295 m)\n5. Continue onto Karl-Liebknecht-Stra\u00dfe (B 2; B 5) (852 m)\n6. Turn right onto Alexanderstra\u00dfe (B 2; B 5) (152 m)\n7. Turn right (25 m)\n8. Arrive at Alexanderplatz",
  "distance_km": 2.75,
  "distance_meters": 2754.3,
  "distance_miles": 1.71,
  "distance_text": "2.8 km (1.7 mi)",
  "duration_minutes": 5.1,
  "duration_seconds": 308.3,
  "duration_text": "5 min",
  "legs": [
    {
      "distance_km": 2.75,
      "distance_meters": 2754.3,
      "distance_miles": 1.71,
      "distance_text": "2.8 km (1.7 mi)",
      "duration_minutes": 5.1,
      "duration_seconds": 308.3,
      "duration_text": "5 min",
      "from": "Brandenburg Gate",
      "leg_number": 1,
      "steps": [
        {
          "direction": "right",
          "distance_km": 0.02,
          "distance_meters": 17.8,
          "distance_miles": 0.01,
          "distance_text": "18 m (58 ft)",
          "duration_minutes": 0.2,
          "duration_seconds": 9.2,
          "duration_text": "9 s",
          "instruction": "Head south on Pariser Platz",
          "latitude": 52.51634,
          "longitude": 13.378236,
          "maneuver": "depart",
          "road": "Pariser Platz"
        },
        {
          "direction": "left",
          "distance_km": 0.09,
          "distance_meters": 86.2,
          "distance_miles": 0.05,
          "distance_text": "86 m (283 ft)",
          "duration_minutes": 0.3,
          "duration_seconds": 19.4,
          "duration_text": "19 s",
          "instruction": "Keep left onto Pariser Platz",
          "latitude": 52.516181,
          "longitude": 13.378265,
          "maneuver": "continue",
          "road": "Pariser Platz"
        },
        {
          "direction": "straight",
          "distance_km": 1.33,
          "distance_meters": 1326.1,
          "distance_miles": 0.82,
          "distance_text": "1.3 km (0.8 mi)",
          "duration_minutes": 2.4,
          "duration_seconds": 141.5,
          "duration_text": "2 min",
          "instruction": "Continue onto Unter den Linden",
          "latitude": 52.516266,
          "longitude": 13.379528,
          "maneuver": "new name",
          "road": "Unter den Linden"
        },
        {
          "direction": "straight",
          "distance_km": 0.3,
          "distance_meters": 295.4,
          "distance_miles": 0.18,
          "distance_text": "295 m (0.2 mi)",
          "duration_minutes": 0.5,
          "duration_seconds": 28.5,
          "duration_text": "28 s",
          "instruction": "Continue onto Schlo\u00dfplatz (B 2; B 5)",
          "latitude": 52.517587,
          "longitude": 13.39893,
          "maneuver": "new name",
          "road": "Schlo\u00dfplatz (B 2; B 5)"
        },
        {
          "direction": "straight",
          "distance_km": 0.85,
          "distance_meters": 852.1,
          "distance_miles": 0.53,
          "distance_text": "852 m (0.5 mi)",
          "duration_minutes": 1.5,
          "duration_seconds": 88.1,
          "duration_text": "1 min",
          "instruction": "Continue onto Karl-Liebknecht-Stra\u00dfe (B 2; B 5)",
          "latitude": 52.518873,
          "longitude": 13.402702,
          "maneuver": "new name",
          "road": "Karl-Liebknecht-Stra\u00dfe (B 2; B 5)"
        },
        {
          "direction": "right",
          "distance_km": 0.15,
          "distance_meters": 152.0,
          "distance_miles": 0.09,
          "distance_text": "152 m (499 ft)",
          "duration_minutes": 0.3,
          "duration_seconds": 17.9,
          "duration_text": "18 s",
          "instruction": "Turn right onto Alexanderstra\u00dfe (B 2; B 5)",
          "latitude": 52.523893,
          "longitude": 13.412151,
          "maneuver": "turn",
          "road": "Alexanderstra\u00dfe (B 2; B 5)"
        },
        {
          "direction": "right",
          "distance_km": 0.02,
          "distance_meters": 24.7,
          "distance_miles": 0.02,
          "distance_text": "25 m (81 ft)",
          "duration_minutes": 0.1,
          "duration_seconds": 3.7,
          "duration_text": "4 s",
          "instruction": "Turn right",
          "latitude": 52.523106,
          "longitude": 13.413966,
          "maneuver": "turn",
          "road": null
        },
        {
          "direction": "straight",
          "distance_km": 0.0,
          "distance_meters": 0.0,
          "distance_miles": 0.0,
          "distance_text": "0 m (0 ft)",
          "duration_minutes": 0.0,
          "duration_seconds": 0.0,
          "duration_text": "0 s",
          "instruction": "Arrive at Alexanderplatz",
          "latitude": 52.522937,
          "longitude": 13.41373,
          "maneuver": "arrive",
          "road": null
        }
      ],
      "to": "Alexanderplatz",
      "via": "Unter den Linden, Karl-Liebknecht-Stra\u00dfe"
    }
  ],
  "route_line": "cbp_I_}spA^EaHsbC}GuViUak@{FkKzCkJ`@n@",
  "route_line_geojson": null,
  "stops": [
    {
      "input_latitude": 52.5163,
      "input_longitude": 13.3777,
      "label": "Brandenburg Gate",
      "latitude": 52.51634,
      "longitude": 13.378236,
      "name": "Brandenburg Gate",
      "position": 1,
      "road": "Pariser Platz",
      "snapped_distance_meters": 36.7
    },
    {
      "input_latitude": 52.5219,
      "input_longitude": 13.4132,
      "label": "Alexanderplatz",
      "latitude": 52.522937,
      "longitude": 13.41373,
      "name": "Alexanderplatz",
      "position": 2,
      "road": null,
      "snapped_distance_meters": 120.9
    }
  ],
  "summary": "2.8 km (1.7 mi), about 5 min by car from Brandenburg Gate to Alexanderplatz",
  "travel_mode": "car"
}
```

### Get travel times between places

Measure the travel time and road distance from each place in From to each place in To, and name the quickest pair. Use it to find which store, depot or technician is closest to a customer. Leave To empty to compare the From places with each other. Have an address instead? Look it up first with OpenStreetMap Nominatim's 'Search for places' step and use its latitude and longitude.

**Inputs**

- From (`origins`, list, required): The places the trips start at. Add a row for each, with its latitude and longitude.
- To (`destinations`, list): The places the trips end at. Leave empty to measure between the From places. Up to 100 places in From and To together.
- Travel by (`travel_mode`, text): How the trip is made. On your own OSRM server, the modes it offers depend on how it was set up. One of: `car`, `bike` (Bicycle), `foot` (On foot). Default: `car`.

**Outputs**

- `destinations` (list): The To places (the From places again when To was left empty).
- `fastest` (object): The pair with the shortest travel time.
- `origins` (list): The From places, where OSRM placed them on the road.
- `pair_count` (number): How many pairs were measured.
- `pairs` (list): One row per trip from a From place to a To place, grouped by the From place.
- `summary` (text): One line naming the quickest pair.
- `travel_mode` (text): How the trip was made: 'car', 'bike' or 'foot'.
- `unreachable_count` (number): How many pairs have no road route between them.

**Example output**

```json
{
  "destinations": [
    {
      "input_latitude": 52.5219,
      "input_longitude": 13.4132,
      "label": "Alexanderplatz",
      "latitude": 52.522937,
      "longitude": 13.41373,
      "name": "Alexanderplatz",
      "position": 1,
      "road": null,
      "snapped_distance_meters": 120.9
    },
    {
      "input_latitude": 52.5096,
      "input_longitude": 13.3759,
      "label": "Potsdamer Platz",
      "latitude": 52.509551,
      "longitude": 13.37591,
      "name": "Potsdamer Platz",
      "position": 2,
      "road": "Potsdamer Platz",
      "snapped_distance_meters": 5.5
    }
  ],
  "fastest": {
    "distance_km": 1.27,
    "distance_meters": 1265.3,
    "distance_miles": 0.79,
    "distance_text": "1.3 km (0.8 mi)",
    "duration_minutes": 3.5,
    "duration_seconds": 208.0,
    "duration_text": "3 min",
    "from": "Brandenburg Gate",
    "from_position": 1,
    "reachable": true,
    "to": "Potsdamer Platz",
    "to_position": 2
  },
  "origins": [
    {
      "input_latitude": 52.5163,
      "input_longitude": 13.3777,
      "label": "Brandenburg Gate",
      "latitude": 52.51634,
      "longitude": 13.378236,
      "name": "Brandenburg Gate",
      "position": 1,
      "road": "Pariser Platz",
      "snapped_distance_meters": 36.7
    }
  ],
  "pair_count": 2,
  "pairs": [
    {
      "distance_km": 2.75,
      "distance_meters": 2754.3,
      "distance_miles": 1.71,
      "distance_text": "2.8 km (1.7 mi)",
      "duration_minutes": 5.1,
      "duration_seconds": 308.3,
      "duration_text": "5 min",
      "from": "Brandenburg Gate",
      "from_position": 1,
      "reachable": true,
      "to": "Alexanderplatz",
      "to_position": 1
    },
    {
      "distance_km": 1.27,
      "distance_meters": 1265.3,
      "distance_miles": 0.79,
      "distance_text": "1.3 km (0.8 mi)",
      "duration_minutes": 3.5,
      "duration_seconds": 208.0,
      "duration_text": "3 min",
      "from": "Brandenburg Gate",
      "from_position": 1,
      "reachable": true,
      "to": "Potsdamer Platz",
      "to_position": 2
    }
  ],
  "summary": "2 pairs by car; quickest: Brandenburg Gate to Potsdamer Platz, 3 min, 1.3 km (0.8 mi)",
  "travel_mode": "car",
  "unreachable_count": 0
}
```

### Plan the quickest order of stops

Work out the quickest order to visit a set of stops, starting at the first one, for a delivery run or a day of site visits. Returns the stops in visiting order, each leg, and the total distance and time. Have an address instead? Look it up first with OpenStreetMap Nominatim's 'Search for places' step and use its latitude and longitude.

**Inputs**

- Stops (`stops`, list, required): The places to visit. The first is where the trip starts. Add a row for each, with its latitude and longitude. Up to 50.
- Trip (`trip_shape`, text): Come back to the first stop at the end, or finish at the last stop in your list. One of: `round_trip` (Round trip, back to the first stop), `one_way` (One way, from the first stop to the last). Default: `round_trip`.
- Travel by (`travel_mode`, text): How the trip is made. On your own OSRM server, the modes it offers depend on how it was set up. One of: `car`, `bike` (Bicycle), `foot` (On foot). Default: `car`.
- Route line (`route_line`, text): Include the line of the route, for drawing it on a map. Simplified is plenty for a small map. One of: `none` (Don't include), `simplified`, `full` (Full detail). Default: `none`.
- Line format (`line_format`, text): How the line is written. An encoded polyline is short text that Google Maps and Mapbox can draw; GeoJSON lists every coordinate. Only when Route line is Simplified or Full detail. One of: `polyline` (Encoded polyline (Google Maps, Mapbox)), `polyline6` (Encoded polyline, 6-digit precision), `geojson` (GeoJSON coordinates). Default: `polyline`.

**Outputs**

- `distance_km` (number): The distance in kilometres, to 2 decimals.
- `distance_meters` (number): The distance in metres.
- `distance_miles` (number): The distance in miles, to 2 decimals.
- `distance_text` (text): The distance to read, in both units, e.g. '4.7 km (2.9 mi)'.
- `duration_minutes` (number): The travel time in minutes, to 1 decimal.
- `duration_seconds` (number): The travel time in seconds.
- `duration_text` (text): The travel time to read, e.g. '12 min' or '1 h 5 min'.
- `legs` (list): One leg per drive between consecutive stops in that order.
- `order` (list): The stops in the order to visit them.
- `round_trip` (true/false): True when the trip ends back at the first stop.
- `route_line` (text): The route's line as an encoded polyline, when a route line in that format was asked for. Google Maps and Mapbox can draw it.
- `route_line_geojson` (object): The route's line as a GeoJSON LineString ({type, coordinates}, each coordinate longitude first), when GeoJSON was asked for.
- `summary` (text): One line with the total and the stops in visiting order.
- `travel_mode` (text): How the trip was made: 'car', 'bike' or 'foot'.

**Example output**

```json
{
  "distance_km": 9.09,
  "distance_meters": 9089.0,
  "distance_miles": 5.65,
  "distance_text": "9.1 km (5.6 mi)",
  "duration_minutes": 18.9,
  "duration_seconds": 1133.0,
  "duration_text": "19 min",
  "legs": [
    {
      "distance_km": 2.75,
      "distance_meters": 2754.3,
      "distance_miles": 1.71,
      "distance_text": "2.8 km (1.7 mi)",
      "duration_minutes": 5.1,
      "duration_seconds": 308.3,
      "duration_text": "5 min",
      "from": "Brandenburg Gate",
      "leg_number": 1,
      "to": "Alexanderplatz",
      "via": null
    },
    {
      "distance_km": 3.01,
      "distance_meters": 3006.0,
      "distance_miles": 1.87,
      "distance_text": "3.0 km (1.9 mi)",
      "duration_minutes": 5.8,
      "duration_seconds": 346.4,
      "duration_text": "6 min",
      "from": "Alexanderplatz",
      "leg_number": 2,
      "to": "Checkpoint Charlie",
      "via": null
    },
    {
      "distance_km": 1.18,
      "distance_meters": 1180.0,
      "distance_miles": 0.73,
      "distance_text": "1.2 km (0.7 mi)",
      "duration_minutes": 2.9,
      "duration_seconds": 172.8,
      "duration_text": "3 min",
      "from": "Checkpoint Charlie",
      "leg_number": 3,
      "to": "Potsdamer Platz",
      "via": null
    },
    {
      "distance_km": 2.15,
      "distance_meters": 2148.7,
      "distance_miles": 1.34,
      "distance_text": "2.1 km (1.3 mi)",
      "duration_minutes": 5.1,
      "duration_seconds": 305.5,
      "duration_text": "5 min",
      "from": "Potsdamer Platz",
      "leg_number": 4,
      "to": "Brandenburg Gate",
      "via": null
    }
  ],
  "order": [
    {
      "input_latitude": 52.5163,
      "input_longitude": 13.3777,
      "label": "Brandenburg Gate",
      "latitude": 52.51634,
      "longitude": 13.378236,
      "name": "Brandenburg Gate",
      "position": 1,
      "road": "Pariser Platz",
      "snapped_distance_meters": 36.7,
      "visit_number": 1
    },
    {
      "input_latitude": 52.5219,
      "input_longitude": 13.4132,
      "label": "Alexanderplatz",
      "latitude": 52.522937,
      "longitude": 13.41373,
      "name": "Alexanderplatz",
      "position": 2,
      "road": null,
      "snapped_distance_meters": 120.9,
      "visit_number": 2
    },
    {
      "input_latitude": 52.5075,
      "input_longitude": 13.3904,
      "label": "Checkpoint Charlie",
      "latitude": 52.507502,
      "longitude": 13.390429,
      "name": "Checkpoint Charlie",
      "position": 4,
      "road": "Friedrichstra\u00dfe",
      "snapped_distance_meters": 2.0,
      "visit_number": 3
    },
    {
      "input_latitude": 52.5096,
      "input_longitude": 13.3759,
      "label": "Potsdamer Platz",
      "latitude": 52.509551,
      "longitude": 13.37591,
      "name": "Potsdamer Platz",
      "position": 3,
      "road": "Potsdamer Platz",
      "snapped_distance_meters": 5.5,
      "visit_number": 4
    }
  ],
  "round_trip": true,
  "route_line": null,
  "route_line_geojson": null,
  "summary": "9.1 km (5.6 mi), about 19 min by car: Brandenburg Gate \u2192 Alexanderplatz \u2192 Checkpoint Charlie \u2192 Potsdamer Platz \u2192 Brandenburg Gate",
  "travel_mode": "car"
}
```

### Snap a GPS track to roads

Take GPS points recorded along a journey, such as a delivery van's or a phone's, and work out the roads actually travelled. Returns the distance and time driven, how confident the match is, and where each point sits on the road.

**Inputs**

- GPS points (`points`, list, required): The recorded points, in the order they were recorded. At least 2 and up to 100. Give each a time if you have it, or leave every time empty.
- Travel by (`travel_mode`, text): How the trip is made. On your own OSRM server, the modes it offers depend on how it was set up. One of: `car`, `bike` (Bicycle), `foot` (On foot). Default: `car`.
- GPS accuracy (metres) (`gps_accuracy_meters`, number): How far a point may be from the road it was really on. Raise it for a noisy phone track; lower it in dense streets. From 1 to 50.0. Default: `20.0`.
- Route line (`route_line`, text): Include the line of the route, for drawing it on a map. Simplified is plenty for a small map. One of: `none` (Don't include), `simplified`, `full` (Full detail). Default: `none`.
- Line format (`line_format`, text): How the line is written. An encoded polyline is short text that Google Maps and Mapbox can draw; GeoJSON lists every coordinate. Only when Route line is Simplified or Full detail. One of: `polyline` (Encoded polyline (Google Maps, Mapbox)), `polyline6` (Encoded polyline, 6-digit precision), `geojson` (GeoJSON coordinates). Default: `polyline`.

**Outputs**

- `confidence` (number): How sure OSRM is of the match, from 0 to 1. Below 0.5, check the points or raise the GPS accuracy.
- `distance_km` (number): The distance in kilometres, to 2 decimals.
- `distance_meters` (number): The distance in metres.
- `distance_miles` (number): The distance in miles, to 2 decimals.
- `distance_text` (text): The distance to read, in both units, e.g. '4.7 km (2.9 mi)'.
- `duration_minutes` (number): The travel time in minutes, to 1 decimal.
- `duration_seconds` (number): The travel time in seconds.
- `duration_text` (text): The travel time to read, e.g. '12 min' or '1 h 5 min'.
- `matched_count` (number): How many GPS points were placed on a road.
- `points` (list): Every GPS point, in order, with where it sits on the road.
- `route_line` (text): The route's line as an encoded polyline, when a route line in that format was asked for. Google Maps and Mapbox can draw it.
- `route_line_geojson` (object): The route's line as a GeoJSON LineString ({type, coordinates}, each coordinate longitude first), when GeoJSON was asked for.
- `segment_count` (number): How many separate pieces the track was matched as. More than 1 means a gap OSRM could not join.
- `summary` (text): One line about the match.
- `travel_mode` (text): How the trip was made: 'car', 'bike' or 'foot'.
- `unmatched_count` (number): How many GPS points were left out.

**Example output**

```json
{
  "confidence": 0.983,
  "distance_km": 0.48,
  "distance_meters": 476.8,
  "distance_miles": 0.3,
  "distance_text": "477 m (0.3 mi)",
  "duration_minutes": 0.9,
  "duration_seconds": 55.5,
  "duration_text": "56 s",
  "matched_count": 4,
  "points": [
    {
      "input_latitude": 52.5173,
      "input_longitude": 13.3881,
      "label": null,
      "latitude": 52.51735,
      "longitude": 13.388765,
      "matched": true,
      "name": "Friedrichstra\u00dfe",
      "position": 1,
      "road": "Friedrichstra\u00dfe",
      "snapped_distance_meters": 45.5
    },
    {
      "input_latitude": 52.517,
      "input_longitude": 13.39,
      "label": null,
      "latitude": 52.51694,
      "longitude": 13.39001,
      "matched": true,
      "name": "Unter den Linden",
      "position": 2,
      "road": "Unter den Linden",
      "snapped_distance_meters": 6.7
    },
    {
      "input_latitude": 52.5172,
      "input_longitude": 13.3925,
      "label": null,
      "latitude": 52.517108,
      "longitude": 13.392517,
      "matched": true,
      "name": "Unter den Linden",
      "position": 3,
      "road": "Unter den Linden",
      "snapped_distance_meters": 10.3
    },
    {
      "input_latitude": 52.5174,
      "input_longitude": 13.395,
      "label": null,
      "latitude": 52.51734,
      "longitude": 13.39501,
      "matched": true,
      "name": "Unter den Linden",
      "position": 4,
      "road": "Unter den Linden",
      "snapped_distance_meters": 6.7
    }
  ],
  "route_line": null,
  "route_line_geojson": null,
  "segment_count": 1,
  "summary": "Matched 4 of 4 GPS points to roads: 477 m (0.3 mi), about 56 s by car (98% confidence)",
  "travel_mode": "car",
  "unmatched_count": 0
}
```
