In-Car Navigation with OSRM
Johan Uhle
@freenerd
johan@mapbox.com
Wherecamp Berlin November 2016
1
2
3
4
5
OSRM
In-car navigation
6
7
OSRM
In-car navigation
1. Dynamic Speeds
2. Guidance
8
Dynamic Speeds
9
Dynamic Speeds
• Speeds based on real traffic conditions on the road
• Goals:
• Give realistic ETAs
• Choose the best route
10
Dynamic Speeds
11
Dynamic Speeds
12
Dynamic Speeds
13
Mapbox Telemetry
14
Over 50 Million Miles per Day
15
Dynamic Speeds
Types of speeds
• Static
• Posted speed limit
• Freeflow speeds
• Dynamic historical
• Dynamic realtime
16
Dynamic Speeds
Mapbox SF office to SFO, x: time UTC y: ETA seconds
blue: static speed from profile orange: external speed data is dynamic with rush hour
17
OSRM
1. Dynamic Speeds
2. Guidance
18
Guidance
19
20
Guidance
Destinations
21
Guidance
Lanes
22
Guidance
Lane Anticipation
23
Guidance
Roundabouts
24
Guidance
Combined Instructions
25
Guidance
Text Instructions
{"turn": {
"default": {
"default": "Make a {modifier}",
"name": "Make a {modifier} onto {way_name}",
"destination": "Make a {modifier} towards {destination}"
},
"straight": {
"default": "Go straight",
"name": "Go straight onto {way_name}",
"destination": "Go straight towards {destination}"
}
}}
• Core-data in json with small portable logic
• JavaScript, Ruby, ObjectiveC/Swift
• Translations via Transifex
26
In your app
27
28
Thanks
• OSRM has in-car-ready navigation
• Mapbox Directions routes with real traffic speeds
• Run turn-by-turn navigation in your app
Johan
@freenerd
johan@mapbox.com
29
• https://www.mapbox.com/drive/
• http://mapbox.com/directions
• project-osrm.org
• github.com/mapbox/guidance-sim
• github.com/project-osrm/osrm-text-instructions
• Maps © Mapbox © OpenStreetMap contributors
• Street Level photos from Mapillary, CC BY-SA, by @filipc
30

In-Car Navigation with OSRM - Wherecamp Berlin 2016