flutter_mapbox_navigation 0.0.1 copy "flutter_mapbox_navigation: ^0.0.1" to clipboard
flutter_mapbox_navigation: ^0.0.1 copied to clipboard

outdated

Add Turn By Turn Navigation to Your Flutter Application Using MapBox. Never leave your app when you need to navigate your users to a location

flutter_mapbox_navigation #

Add Turn By Turn Navigation to Your Flutter Application Using MapBox. Never leave your app when you need to navigate your users to a location.

Features #

Configuration #

  1. Mapbox APIs and vector tiles require a Mapbox account and API access token. In the project editor, select the application target, then go to the Info tab. Under the “Custom iOS Target Properties” section, set MGLMapboxAccessToken to your access token. You can obtain an access token from the Mapbox account page.

  2. In order for the SDK to track the user’s location as they move along the route, set NSLocationWhenInUseUsageDescription to:

    Shows your location on the map and helps improve OpenStreetMap.

  3. Users expect the SDK to continue to track the user’s location and deliver audible instructions even while a different application is visible or the device is locked. Go to the Capabilities tab. Under the Background Modes section, enable “Audio, AirPlay, and Picture in Picture” and “Location updates”. (Alternatively, add the audio and location values to the UIBackgroundModes array in the Info tab.)

Usage #


  final origin = Location(name: "Buffalo, NY", latitude: 42.886448, longitude: -78.878372);
  final destination = Location(name: "Boston, MA", latitude: 42.360081, longitude: -71.058884);
  
  await FlutterMapboxNavigation.startNavigation(origin, destination);
  

Screenshots #

Navigation View Instruction View
Navigation View Instruction View

To Do #

  • Android Implementation
  • Add more settings like Navigation Mode (driving, walking, etc)
  • Provide physical address instead of just coordinates to remove reliance on other geolocation packages
  • Stream Events like relevant navigation notifications, metrics, current location, etc.
  • Embeddable Navigation View
272
likes
0
pub points
92%
popularity

Publisher

verified publishereopeter.com

Add Turn By Turn Navigation to Your Flutter Application Using MapBox. Never leave your app when you need to navigate your users to a location

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_mapbox_navigation