mapbox / mapbox-navigation-android

Mapbox Navigation SDK for Android
https://docs.mapbox.com/android/navigation/overview/
Other
621 stars 318 forks source link

Mapbox doesn't update navigation instruction information during backward navigation. #4554

Open shreya-ja opened 3 years ago

shreya-ja commented 3 years ago

Android API:29 Mapbox Maps SDK version:9.6.1 Mapbox Navigation UI SDK version:1.5.1

I was exploring MapBox Direction API using Walking profile and experienced the following issue

Steps to trigger behavior

  1. Make a Direction API call using below request
  2. Start navigation on route that has left/right turns (e.g. "Turn left onto walkway in 300 feet") or direction specific instruction (e.g. "Walk North for 300 feet")
  3. After covering 1 or 2 milestones, navigate backward towards the starting point of the route.

Location - Chicago, USA Direction API Request

Start Coordinate - 41.893196, -87.636569 Destination Coordinate - 41.883301, -87.635309 ` val walking: WalkingOptions = WalkingOptions.builder().alleyBias(1.0).walkwayBias(1.0).build()

mapboxNavigation.requestRoutes( RouteOptions.builder() .accessToken(accessToken) .baseUrl(RouteUrl.BASE_URL) .user(RouteUrl.PROFILE_DEFAULT_USER) .requestUuid("") .coordinates(listOf(coordinateList.first(), coordinateList.last())) .geometries(RouteUrl.GEOMETRY_POLYLINE6) .profile(RouteUrl.PROFILE_WALKING) .steps(true) .overview(RouteUrl.OVERVIEW_FULL) .bannerInstructions(true) .walkingOptions(walking) .build(), routesReqCallback )

`

Expected behavior

**If user moves backward on route, then

  1. Mapbox shall provide updated instruction accordingly. For example, if navigation instruction in forward navigation is "Turn left onto walkway" then in backward navigation, the instruction shall be "Turn right onto walkway"
  2. Mapbox shall provide updated instruction accordingly. For example, if navigation instruction in forward navigation is "Walk North" then in backward navigation, the instruction shall be "Walk South"**

Actual behavior

Mapbox does not provide updated directions/turns in navigation instruction if user navigates backward on the route. For example, if navigation instruction in forward navigation is "Turn left onto walkway" then in backward navigation, the instruction is same and does not change.

I checked this scenario in Google and found working as expected. Please let me know if this is a bug in MapBox Direction API or am I missing any configuration in my code?

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.