mapbox-navigation-ios icon indicating copy to clipboard operation
mapbox-navigation-ios copied to clipboard

RouteOptions activityType

Open Udumft opened this issue 3 years ago • 2 comments

Description

We found that otherNavigation activity type produces better GPS data in comparison to automotiveNavigation we used previously, with just marginally bigger battery consumptions. So we've decided to update the default value and expose a clear path for customizing it by anyone who still prefers automotiveNavigation or any other type.

Implementation

Exposed RouteOptions.activityType open; changed default value to otherNavigation

Udumft avatar Aug 10 '22 16:08 Udumft

Breaking Changes in MapboxCoreNavigation

Breaking API Changes

lastInstruction

  • modified var: lastInstruction
    Type of change: Access Level
    From: open
    To: public

calculateWithCache(options:completionHandler:)

  • modified method: calculateWithCache(options:completionHandler:)
    Type of change: Access Level
    From: open
    To: public

isMotorway

  • modified var: isMotorway
    Type of change: Access Level
    From: open
    To: public

calculateOffline(options:completionHandler:)

  • modified method: calculateOffline(options:completionHandler:)
    Type of change: Access Level
    From: open
    To: public

Breaking Changes in MapboxCoreNavigation

Breaking API Changes

lastInstruction

  • modified var: lastInstruction
    Type of change: Access Level
    From: open
    To: public

calculateWithCache(options:completionHandler:)

  • modified method: calculateWithCache(options:completionHandler:)
    Type of change: Access Level
    From: open
    To: public

calculateOffline(options:completionHandler:)

  • modified method: calculateOffline(options:completionHandler:)
    Type of change: Access Level
    From: open
    To: public

isMotorway

  • modified var: isMotorway
    Type of change: Access Level
    From: open
    To: public

Code LGTM, just waiting for all the checks to be completed.

chezzdev avatar Aug 15 '22 13:08 chezzdev

Breaking Changes in MapboxCoreNavigation

Breaking API Changes

MapboxNavigationService

  • removed method: init(routeResponse:routeIndex:routeOptions:customRoutingProvider:credentials:locationSource:eventsManagerType:simulating:routerType:) in MapboxNavigationService