Skip to content

Standalone Mapbox Navigation SDK for Android - #1

Merged
zugaldia merged 11 commits into
masterfrom
standalone
Apr 19, 2017
Merged

zugaldia merged 11 commits into
masterfrom
standalone

Conversation

@zugaldia

Copy link
Copy Markdown
Member

This PR extracts the navigation code from MAS into its own self-contained library.

@zugaldia zugaldia self-assigned this Apr 13, 2017
@zugaldia zugaldia changed the title Standalone Mapbox Navigation SDK for Android [WIP] Standalone Mapbox Navigation SDK for Android Apr 13, 2017
@zugaldia

Copy link
Copy Markdown
Member Author

The corresponding MAS PR is happening in mapbox/mapbox-java#439.

This was referenced Apr 14, 2017
@zugaldia zugaldia changed the title [WIP] Standalone Mapbox Navigation SDK for Android Standalone Mapbox Navigation SDK for Android Apr 18, 2017
@zugaldia
zugaldia requested a review from cammace April 18, 2017 21:39
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants