Skip to content

Mapbox Navigation SDK v0.14.0

Compare
Choose a tag to compare
@danesfeder danesfeder released this 31 May 18:09
· 4180 commits to main since this release

Release Notes

Release contains API Breaking Changes → See Navigation UI Notes

Navigation Core libandroid-navigation

  • New API that allows for a List of Milestone to be added at the same time, rather than each Milestone added individually.
  • Bug fixes

Navigation UI libandroid-navigation-ui

  • Breaking change: origin, destination, unitType, and locale have been removed from NavigationViewOptions and NavigationLauncherOptions.
    • This API change was done in an effort to make localizing the SDK more straightforward.
    • You now must request a DirectionsRoute prior to starting navigation with either the NavigationLauncher or NavigationView itself.
    • We will now use the language and voiceUnit type to determine pronunciation for voice announcements and parsing of distances (imperial v. metric) in the UI.
    • An example request demonstrating how to configure:
      NavigationRoute.builder(this)
        .accessToken(Mapbox.getAccessToken())
        .origin(origin)
        .destination(destination)
        .language(Locale.FRANCE.getLanguage())
        .voiceUnits(DirectionsCriteria.METRIC)
        .build().getRoute(this);
      
    • Once this route is successfully retrieved by our Directions API and passed to the SDK, we will look at the French Locale and METRIC voice units for our localization.
    • The NavigationRoute.``builder``(this) now takes in a Context so we can provide device defaults based on the current configuration if a language or voiceUnit is not set.
  • Dynamic abbreviations in the InstructionView
    • The Directions API now offers abbreviations for each components being used to create the top banner. If the combined text / images do not fit within the TextView, we will now automatically abbreviate certain words in an effort to make the text fit without an ellipsis.

ezgif com-video-to-gif

  • Navigation Map Styles v3
    • Updated default maps styles designed by our Cartography team.
  • Bug fixes

Changelog:

  • Always provide DirectionsRoute in NavigationActivity #980
  • Update Maps SDK to 6.1.3 and Events library to 3.1.2 #975
  • Add List of Milestones to NavigationViewOptions #974
  • Remove origin, destination, unit type and locale from nav options #965
  • Update Maps SDK 6.1.2 #962
  • Disable debug logging for Telemetry and Image loading #961
  • Reset EventDispatcher in onDestroy #954
  • Fix link in CONTRIBUTING.md #952
  • Fix navigation guidance styles keys #948
  • Resume navigation state based on MapboxNavigation running #946
  • Initialize ViewModel EventDispatcher in NavigationView constructor #945
  • Add NavigationHelper check for valid step points using lineSlice #944
  • Use last BannerInstruction for arrival event #943
  • Downgrade min sdk version to 14 #942
  • Remove onStyleLoaded Callback in NavigationView #939
  • Update ConstraintLayout, Support Lib, and LocationLayerPlugin dependencies #938
  • Update translation Strings and add Burmese #937
  • Check for valid BannerInstructions when milestones are enabled #936
  • Added null check to make sure a file is actually returned #925
  • Update to Guidance V3 Map Styles #917
  • Check NavigationOptions in NavigationService #916
  • Remove AWS Polly dependency not needed anymore #914
  • Update localization.md #913
  • Dynamic abbreviations in banner instructions #887