Turn-by-turn navigation
Navigation follows a route, tells where the traveller stands, and says each maneuver aloud. The machine is pure Dart in mountaya_geo; mountaya_navigation_flutter adds the device's location and voice.
readItineraryRoute joins a saved itinerary's segments into the one route a traveller follows:
RouteFollowingEngine follows a route on the positions you hand it, on a server or in a test:
In a Flutter app, DeviceNavigationEngine is the same machine with the device's location and voice beside it.
DeviceLocationSource reads the device's satellite position while your app holds location access:
The plugin never asks for location access. Ask in your own flow, and declare it in ios/Runner/Info.plist:
And in android/app/src/main/AndroidManifest.xml:
SpeechNavigationVoice says your sentence for each instruction. An instruction is a key and its arguments, never a sentence:
Hand it to DeviceNavigationEngine(voice: voice). The engine says each maneuver once, 50 m before it.
The engine's state carries the progress. Read it in a widget through a NavigationListenable:
ReplayLocationSource walks each route the engine follows at the speed you name, for a demo or a test: