Handling Arrival at Waypoint and Rerouting in Navigation SDK v3 #4758
              
                Unanswered
              
          
                  
                    
                      nikunjOgmaIT
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
I am currently working with the Mapbox Navigation SDK v3 and am using NavigationViewController along with NavigationRoutes and NavigationOptions to generate routes based on waypoints.
I have encountered an issue:
When a user reaches a destination, the navigationViewController(_:didArriveAt:) delegate method is called, which indicates arrival at the waypoint. However, in some cases, the road to the waypoint may be blocked, and users need to take a different route to reach their destination.
Since didArriveAt is already triggered, rerouting is not possible at that point.
I would like your guidance on this:
Is there a way to prevent or delay the didArriveAt event being triggered automatically, so that we can handle arrival detection programmatically based on our custom logic?
Or, is there any other recommended approach to manage such situations where rerouting is still required after the user is considered "arrived"?
I would appreciate any assistance or best practices you could share to help us handle this case properly.
Thank you for your support!
Beta Was this translation helpful? Give feedback.
All reactions