Skip to content

0.31.0 Migration Guide

Dan Nesfeder edited this page Mar 6, 2019 · 1 revision

SEMVER breaks:

  • In this PR, we removed the directionsProfile field from NavigationUiOptions and, as a result NavigationLauncherOptions. This field was being ignored internally and a profile can still be chosen with the NavigationRoute when fetching a DirectionsRoute:
    NavigationRoute.builder(this)
      .accessToken(Mapbox.getAccessToken())
      .origin(origin)
      .destination(destination)
      .profile(DirectionsCriteria.PROFILE_CYCLING)
      .build()

The NavigationView will consider this same profile when re-routing or fetching faster routes.