flutter_osrm_navigation 0.1.8
flutter_osrm_navigation: ^0.1.8 copied to clipboard
Turn-by-turn navigation for flutter_map on any OSRM or Valhalla server. Off-route rerouting, voice prompts, a banner and map layers you can recolor.
0.1.8 #
RouteSimulatorparks at the end: its last fix says speed 0, so the speed badge no longer stays at the simulated speed after the drive. A real GPS already reports 0 when the car stops
0.1.7 #
- Speed limit sign next to the speed, from the route's
maxspeedannotation, and the speed inspeedingColorwhile over it. Without limits only the speed shows.OsrmRouter(speedLimits: true)asks for them on servers that support it,speedLimitKmh,speedingandSpeedLimitChangedon the controller stopBuilderanddestinationBuilderfor your own stop and destination widgetsonFollowingChangedonNavigationMap, andNavigationMapState.recenter()through aGlobalKey- README: an animation of a drive, and a screenshot with the speed
Nothing to change on your side.
0.1.6 #
- Spacing for everything over the map:
bannerPadding,bannerMaxWidth,recenterPadding,recenterAlignment(next tospeedPaddingandspeedAlignment), andoverlayInsetsthat pushes the banner, the speed and the re-center button in together, for buttons or a panel of your own
Nothing to change on your side, the defaults are the old spacing.
0.1.5 #
- The current speed on the map:
NavigationMap(showSpeed: true)by default, in km/h or mph bysettings.unitsand in the navigation language.NavigationSpeedometerfor your own layout,speedColorandonSpeedColorinNavigationStyle - README: every switch on
NavigationMapin one place, the accuracy circle (showAccuracy, on by default) among them
Nothing to change on your side. To keep the map as before pass showSpeed: false.
0.1.4 #
- Rate limits are handled: a 429 or a server error is not retried on the spot,
RoutingExceptionhasisRateLimited,isServerErrorand the server'sretryAfter, and reroutes and ETA refreshes wait at least as long asRetry-Afterasks - Every routing error keeps its HTTP status
headersBuilderon both routers, asked before every request, for tokens that expireValhallaRoutertakesqueryParameters, for hosted servers that want the key in the URL- README: keys, tokens and rate limits, and fresh screenshots of the arrival and of the Greek banner
Nothing to change on your side.
0.1.3 #
- WebAssembly ready: on the web the voice now uses the browser's own speech directly, and flutter_tts is only loaded on phones and desktops. Same
TtsNavigationVoice, nothing to change on your side - Works with latlong2 0.10 as well as 0.9
0.1.2 #
- Arrival no longer leaves an empty strip under the banner: the footer buttons move up next to the arrival text, which also shows the destination name
- The arrival time follows the navigation language: 24 hour in Greek, the device setting in English (
NavigationStrings.clockTime)
0.1.1 #
More events, so distance and time can be followed without listening to the controller:
ProgressUpdatedafter every GPS fix that counted: distance and time left, distance to the next maneuver, position, speed, arrival timeStepChangedwhen the next maneuver changes, the one before passedEtaUpdatedwhen the router's estimate corrects the time left
Nothing to change on your side.
0.1.0 #
First release.
- Turn-by-turn navigation along the route line: distance to the next maneuver, time and distance left, arrival time
- Voice prompts far, near and at each maneuver, earlier at speed, with the next one when it comes right after
- Rerouting when off the route, driving the wrong way, or past a missed U-turn. One request at a time with a backoff, the old route stays until a new one arrives
- Stops on the way, announced and reported, and kept in reroutes
- Routers for OSRM and Valhalla, plus
CallbackRouterfor routes that come through your own backend - Live ETA from the router now and then
NavigationMapwith a camera that turns with the road, zooms with speed and comes back after you panNavigationBanner,NavigationRouteLayer,NavigationStopsLayerandNavigationPositionLayerfor your own layoutsNavigationStyletheme extension for every colorNavigationLocationfor GPS fixes that keep coming in the background (Android foreground service, iOS background location)- English and Greek, metric and imperial
RouteSimulatorto drive a route at a desk, withmissTurnandturnAroundto watch rerouting- Tested on Android 15 in the foreground and with the screen off