logistics

Routing

Etas, routes and turn by turn directions

Introduction

The routing service provides a faster and cheaper alternative to the Google Maps API. Get etas, routes, and turn by turn directions all from OpenStreetMap data.

Powered by project-osrm.org.

FeaturesFull documentation

EndpointDescriptionPricing (per request)
DirectionsTurn by turn directions from a start point to an end point including maneuvers and bearings$0.001
EtaGet the eta for a route from origin to destination. The eta is an estimated time based on car routesFree
RouteRetrieve a route as a simple list of gps points along with total distance and estimated durationFree

Example

Please see an example of how to get started with the routing api.

For a more detailed view please see the API page

Directions Request

Response

1{
2    "directions": [
3        {
4            "name": "Torstraße",
5            "instruction": "depart ",
6            "distance": 748.7000122070312,
7            "duration": 122.4000015258789,
8            "maneuver": {
9                "bearing_after": 265,
10                "location": {
11                    "latitude": 52.529432,
12                    "longitude": 13.397627
13                },
14                "action": "depart"
15            },
16            "intersections": [
17                {
18                    "location": {
19                        "latitude": 52.529432,
20                        "longitude": 13.397627
21                    },
22                    "bearings": [
23                        265
24                    ]
25                },
26                {
27                    "location": {
28                        "latitude": 52.529429,
29                        "longitude": 13.397565
30                    },
31                    "bearings": [
32                        90,
33                        180,
34                        255,
35                        345
36                    ]
37                },
38                {
39                    "location": {
40                        "latitude": 52.528996,
41                        "longitude": 13.395724
42                    },
43                    "bearings": [
44                        75,
45                        255,
46                        345
47                    ]
48                },
49                {
50                    "location": {
51                        "latitude": 52.528526,
52                        "longitude": 13.393814
53                    },
54                    "bearings": [
55                        75,
56                        135,
57                        255,
58                        315
59                    ]
60                },
61                {
62                    "location": {
63                        "latitude": 52.528233,
64                        "longitude": 13.392425
65                    },
66                    "bearings": [
67                        75,
68                        165,
69                        255
70                    ]
71                },
72                {
73                    "location": {
74                        "latitude": 52.528032,
75                        "longitude": 13.391396
76                    },
77                    "bearings": [
78                        75,
79                        255,
80                        330
81                    ]
82                },
83                {
84                    "location": {
85                        "latitude": 52.527549,
86                        "longitude": 13.389147
87                    },
88                    "bearings": [
89                        75,
90                        255,
91                        345
92                    ]
93                }
94            ]
95        },
96        {
97            "name": "Friedrichstraße",
98            "instruction": "turn left",
99            "distance": 1151,
100            "duration": 135.8000030517578,
101            "maneuver": {
102                "bearing_before": 251,
103                "bearing_after": 257,
104                "location": {
105                    "latitude": 52.527166,
106                    "longitude": 13.387215
107                },
108                "action": "turn",
109                "direction": "left"
110            },
111            "intersections": [
112                {
113                    "location": {
114                        "latitude": 52.527166,
115                        "longitude": 13.387215
116                    },
117                    "bearings": [
118                        75,
119                        180,
120                        255,
121                        330
122                    ]
123                },
124                {
125                    "location": {
126                        "latitude": 52.527137,
127                        "longitude": 13.386982
128                    },
129                    "bearings": [
130                        75,
131                        165,
132                        255,
133                        330
134                    ]
135                },
136                {
137                    "location": {
138                        "latitude": 52.526374,
139                        "longitude": 13.387144
140                    },
141                    "bearings": [
142                        0,
143                        75,
144                        180
145                    ]
146                },
147                {
148                    "location": {
149                        "latitude": 52.526292,
150                        "longitude": 13.387156
151                    },
152                    "bearings": [
153                        0,
154                        120,
155                        180
156                    ]
157                },
158                {
159                    "location": {
160                        "latitude": 52.525018,
161                        "longitude": 13.387368
162                    },
163                    "bearings": [
164                        0,
165                        180,
166                        255
167                    ]
168                },
169                {
170                    "location": {
171                        "latitude": 52.523863,
172                        "longitude": 13.387568
173                    },
174                    "bearings": [
175                        0,
176                        90,
177                        180,
178                        255
179                    ]
180                },
181                {
182                    "location": {
183                        "latitude": 52.522524,
184                        "longitude": 13.387885
185                    },
186                    "bearings": [
187                        0,
188                        180,
189                        225
190                    ]
191                },
192                {
193                    "location": {
194                        "latitude": 52.52175,
195                        "longitude": 13.388024
196                    },
197                    "bearings": [
198                        0,
199                        60,
200                        180,
201                        225
202                    ]
203                },
204                {
205                    "location": {
206                        "latitude": 52.520332,
207                        "longitude": 13.388224
208                    },
209                    "bearings": [
210                        0,
211                        90,
212                        180,
213                        285
214                    ]
215                },
216                {
217                    "location": {
218                        "latitude": 52.520298,
219                        "longitude": 13.388228
220                    },
221                    "bearings": [
222                        0,
223                        180
224                    ]
225                },
226                {
227                    "location": {
228                        "latitude": 52.519905,
229                        "longitude": 13.388272
230                    },
231                    "bearings": [
232                        0,
233                        180
234                    ]
235                },
236                {
237                    "location": {
238                        "latitude": 52.519822,
239                        "longitude": 13.38828
240                    },
241                    "bearings": [
242                        0,
243                        195,
244                        270
245                    ]
246                },
247                {
248                    "location": {
249                        "latitude": 52.518716,
250                        "longitude": 13.388544
251                    },
252                    "bearings": [
253                        30,
254                        90,
255                        180,
256                        270,
257                        315
258                    ]
259                },
260                {
261                    "location": {
262                        "latitude": 52.518027,
263                        "longitude": 13.388643
264                    },
265                    "bearings": [
266                        0,
267                        90,
268                        180,
269                        270
270                    ]
271                },
272                {
273                    "location": {
274                        "latitude": 52.517155,
275                        "longitude": 13.388779
276                    },
277                    "bearings": [
278                        0,
279                        90,
280                        180,
281                        270
282                    ]
283                }
284            ]
285        },
286        {
287            "name": "Friedrichstraße",
288            "instruction": "arrive ",
289            "maneuver": {
290                "bearing_before": 174,
291                "location": {
292                    "latitude": 52.517036,
293                    "longitude": 13.388798
294                },
295                "action": "arrive"
296            },
297            "intersections": [
298                {
299                    "location": {
300                        "latitude": 52.517036,
301                        "longitude": 13.388798
302                    },
303                    "bearings": [
304                        354
305                    ]
306                }
307            ]
308        }
309    ],
310    "waypoints": [
311        {
312            "name": "Torstraße",
313            "location": {
314                "latitude": 52.529432,
315                "longitude": 13.397627
316            }
317        },
318        {
319            "name": "Torstraße",
320            "location": {
321                "latitude": 52.529429,
322                "longitude": 13.397565
323            }
324        },
325        {
326            "name": "Torstraße",
327            "location": {
328                "latitude": 52.528996,
329                "longitude": 13.395724
330            }
331        },
332        {
333            "name": "Torstraße",
334            "location": {
335                "latitude": 52.528526,
336                "longitude": 13.393814
337            }
338        },
339        {
340            "name": "Torstraße",
341            "location": {
342                "latitude": 52.528233,
343                "longitude": 13.392425
344            }
345        },
346        {
347            "name": "Torstraße",
348            "location": {
349                "latitude": 52.528032,
350                "longitude": 13.391396
351            }
352        },
353        {
354            "name": "Torstraße",
355            "location": {
356                "latitude": 52.527549,
357                "longitude": 13.389147
358            }
359        },
360        {
361            "name": "Friedrichstraße",
362            "location": {
363                "latitude": 52.527166,
364                "longitude": 13.387215
365            }
366        },
367        {
368            "name": "Friedrichstraße",
369            "location": {
370                "latitude": 52.527137,
371                "longitude": 13.386982
372            }
373        },
374        {
375            "name": "Friedrichstraße",
376            "location": {
377                "latitude": 52.526374,
378                "longitude": 13.387144
379            }
380        },
381        {
382            "name": "Friedrichstraße",
383            "location": {
384                "latitude": 52.526292,
385                "longitude": 13.387156
386            }
387        },
388        {
389            "name": "Friedrichstraße",
390            "location": {
391                "latitude": 52.525018,
392                "longitude": 13.387368
393            }
394        },
395        {
396            "name": "Friedrichstraße",
397            "location": {
398                "latitude": 52.523863,
399                "longitude": 13.387568
400            }
401        },
402        {
403            "name": "Friedrichstraße",
404            "location": {
405                "latitude": 52.522524,
406                "longitude": 13.387885
407            }
408        },
409        {
410            "name": "Friedrichstraße",
411            "location": {
412                "latitude": 52.52175,
413                "longitude": 13.388024
414            }
415        },
416        {
417            "name": "Friedrichstraße",
418            "location": {
419                "latitude": 52.520332,
420                "longitude": 13.388224
421            }
422        },
423        {
424            "name": "Friedrichstraße",
425            "location": {
426                "latitude": 52.520298,
427                "longitude": 13.388228
428            }
429        },
430        {
431            "name": "Friedrichstraße",
432            "location": {
433                "latitude": 52.519905,
434                "longitude": 13.388272
435            }
436        },
437        {
438            "name": "Friedrichstraße",
439            "location": {
440                "latitude": 52.519822,
441                "longitude": 13.38828
442            }
443        },
444        {
445            "name": "Friedrichstraße",
446            "location": {
447                "latitude": 52.518716,
448                "longitude": 13.388544
449            }
450        },
451        {
452            "name": "Friedrichstraße",
453            "location": {
454                "latitude": 52.518027,
455                "longitude": 13.388643
456            }
457        },
458        {
459            "name": "Friedrichstraße",
460            "location": {
461                "latitude": 52.517155,
462                "longitude": 13.388779
463            }
464        },
465        {
466            "name": "Friedrichstraße",
467            "location": {
468                "latitude": 52.517036,
469                "longitude": 13.388798
470            }
471        }
472    ],
473    "distance": 1899.800048828125,
474    "duration": 258.20001220703125
475}