Repository navigation
Standalone Mapbox Navigation SDK for Android - #1
Merged
Merged
Conversation
Member
Author
|
The corresponding MAS PR is happening in mapbox/mapbox-java#439. |
This was referenced Apr 14, 2017
Closed
Closed
Closed
cammace
approved these changes
Apr 18, 2017
1 of 5 tasks
This was referenced Aug 30, 2022
Closed
mapbox-github-ci-writer-public-1 Bot
pushed a commit
that referenced
this pull request
Jun 17, 2026
[NAVAND-7261](https://mapbox.atlassian.net/browse/NAVAND-7261) ## Problem This is an extreme edge case identified during testing of this feature at Zeekr: 1. The vehicle has planned a route and is entering a speed zone. 2. A new waypoint is added while driving inside the speed zone, making the vehicle to pass through the same zone again. 3. As a result, the vehicle is driving through a speed zone on a route that contains the same speed zone again. During this "re-route" NavSDK is missing state of the current speed zone. To deal with repeated speed zones within a single route response, NavSDK adjusts the IDs of the speed zones by adding a postfix like `#0`, `#1` to a zone ID if it appears more than once in the response. However, when an initial route without repeated speed zones is "re-planned" in such a way that a zone exists twice in the route, the zone's ID changes from `speed_zone_id` to `speed_zone_id#0`, causing NavSDK to fail to restore the zone's current active state. ## Solution To deal with that, I've added a backup path to check the "canonical" id of a current zone, without the `#0` postfix. This helps to restore current active zone state if if it's "uncanonical" ID has changed during reroute. ## Testing I've added a few test cases. [NAVAND-7261]: https://mapbox.atlassian.net/browse/NAVAND-7261?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ cc @mapbox/3d-live-navigation cc @mapbox/navigation-android GitOrigin-RevId: c89dd53bbd1c10b80bd208c924a9f5fcaf2d1140
mapbox-github-ci-writer-public-1 Bot
pushed a commit
that referenced
this pull request
Jun 30, 2026
[NAVAND-7261](https://mapbox.atlassian.net/browse/NAVAND-7261) ## Problem This is an extreme edge case identified during testing of this feature at Zeekr: 1. The vehicle has planned a route and is entering a speed zone. 2. A new waypoint is added while driving inside the speed zone, making the vehicle to pass through the same zone again. 3. As a result, the vehicle is driving through a speed zone on a route that contains the same speed zone again. During this "re-route" NavSDK is missing state of the current speed zone. To deal with repeated speed zones within a single route response, NavSDK adjusts the IDs of the speed zones by adding a postfix like `#0`, `#1` to a zone ID if it appears more than once in the response. However, when an initial route without repeated speed zones is "re-planned" in such a way that a zone exists twice in the route, the zone's ID changes from `speed_zone_id` to `speed_zone_id#0`, causing NavSDK to fail to restore the zone's current active state. ## Solution To deal with that, I've added a backup path to check the "canonical" id of a current zone, without the `#0` postfix. This helps to restore current active zone state if if it's "uncanonical" ID has changed during reroute. ## Testing I've added a few test cases. [NAVAND-7261]: https://mapbox.atlassian.net/browse/NAVAND-7261?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ cc @mapbox/3d-live-navigation cc @mapbox/navigation-android GitOrigin-RevId: c89dd53bbd1c10b80bd208c924a9f5fcaf2d1140
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR extracts the navigation code from MAS into its own self-contained library.