Turn-by-turn navigation
A navigation follows a route you hand it, from positions you or the device give it. RouteFollowingEngine runs on every target. On Android, DeviceNavigationEngine adds the device's location and its voice.
readItineraryRoute joins a saved itinerary's segments into one route to follow:
RouteFollowingEngine is the navigation on every target: hand it positions, and read its state:
On Android, DeviceNavigationEngine reads the device's satellite position while your app holds ACCESS_FINE_LOCATION:
Ask for location access in your app's own flow first. The engine never asks.
SpeechNavigationVoice says each maneuver through the platform's text-to-speech, in your words:
Hand it to the engine as voice = frenchVoice(scope, context). The engine says each maneuver once, 50 m before it.
The state holds what is left to the next maneuver and to the arrival:
ReplayLocationSource walks the route for you, at the speed you name, for a demo or a test: