Skip to content

Commit

Permalink
Bump NN version (#7531)
Browse files Browse the repository at this point in the history
* Bump NN version

* Changelog
  • Loading branch information
DzmitryFomchyn authored Sep 22, 2023
1 parent 7f1c98b commit 822e194
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 11 deletions.
2 changes: 2 additions & 0 deletions changelog/unreleased/bugfixes/7531.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Map-matching improvement in dead-reckoning.
- Report Off-Route if LocationOnLeg legIndex is greater than current route leg.
2 changes: 1 addition & 1 deletion gradle/dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ext {
// version which we should use in this build
def mapboxNavigatorVersion = System.getenv("FORCE_MAPBOX_NAVIGATION_NATIVE_VERSION")
if (mapboxNavigatorVersion == null || mapboxNavigatorVersion == '') {
mapboxNavigatorVersion = '157.0.0'
mapboxNavigatorVersion = '158.0.0'
}
println("Navigation Native version: " + mapboxNavigatorVersion)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2133,8 +2133,6 @@ class MapboxNavigation @VisibleForTesting internal constructor(
navigationOptions.routingTilesOptions.tileStore,
null,
null,
null,
THREADS_COUNT,
TileEndpointConfiguration(
navigationOptions.routingTilesOptions.tilesBaseUri.toString(),
dataset,
Expand Down Expand Up @@ -2174,8 +2172,6 @@ class MapboxNavigation @VisibleForTesting internal constructor(
private var hasInstance = false

private const val LOG_CATEGORY = "MapboxNavigation"
private const val USER_AGENT: String = "MapboxNavigationNative"
private const val THREADS_COUNT = 2
private const val ONE_SECOND_IN_MILLIS = 1000.0
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,5 @@ class NavigatorTest {
null,
null,
null,
null,
null,
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import com.mapbox.geojson.Point
import com.mapbox.navigator.ActiveGuidanceInfo
import com.mapbox.navigator.BannerInstruction
import com.mapbox.navigator.BannerSection
import com.mapbox.navigator.CorrectedLocationData
import com.mapbox.navigator.FixLocation
import com.mapbox.navigator.MapMatcherOutput
import com.mapbox.navigator.NavigationStatus
Expand All @@ -19,7 +20,6 @@ import com.mapbox.navigator.RouterOrigin
import com.mapbox.navigator.SpeedLimit
import com.mapbox.navigator.SpeedLimitSign
import com.mapbox.navigator.SpeedLimitUnit
import com.mapbox.navigator.UpcomingRouteAlert
import com.mapbox.navigator.UpcomingRouteAlertUpdate
import com.mapbox.navigator.VoiceInstruction
import com.mapbox.navigator.Waypoint
Expand All @@ -34,7 +34,6 @@ fun createNavigationStatus(
primaryRouteId: String? = null,
stale: Boolean = false,
location: FixLocation = createFixedLocation(),
routeSequenceNumber: Int = 0,
routeIndex: Int = 0,
legIndex: Int = 0,
stepIndex: Int = 0,
Expand All @@ -59,7 +58,8 @@ fun createNavigationStatus(
nextWaypointIndex: Int = 0,
layer: Int = 0,
alternativeRouteIndices: List<RouteIndices> = emptyList(),
isSyntheticLocation: Boolean = false
isSyntheticLocation: Boolean = false,
correctedLocationData: CorrectedLocationData? = null,
): NavigationStatus {
return NavigationStatus(
routeState,
Expand Down Expand Up @@ -90,7 +90,8 @@ fun createNavigationStatus(
upcomingRouteAlertUpdates,
nextWaypointIndex,
layer,
isSyntheticLocation
isSyntheticLocation,
correctedLocationData
)
}

Expand Down

0 comments on commit 822e194

Please sign in to comment.