Turn-by-turn navigation
MountayaNavigation follows a route on the device: it reads your position, says each maneuver in your words, and tells you what is left until you arrive.
A saved itinerary is followed whole, as one route with its steps:
An engine takes a route source and the positions you hand it. RouteFollowingEngine is the engine with no device behind it:
state is observable, so a SwiftUI view that reads it is drawn again as you move.
DeviceNavigationEngine reads the device's position while your app holds the permission. Your app asks for it, and says why in Info.plist:
SpeechNavigationVoice says your sentence for each instruction, in the language you name:
Hand it to DeviceNavigationEngine(voice:). The engine says each maneuver once, 50 m before it.
state.progress says how far it is to the next maneuver and to the arrival:
ReplayLocationSource walks the route at a speed you name, for a demo or a test on the simulator: