HOW TO: Use the Navigate control shows one way to get directions from a single location to another location using the Navigate control The developer must provide the start location and the end location and then call RequestDirections and wait for the ORS to determine a path.
When you request directions, you use ORS to generate a list of directions and a path showing the route on the Map component. Unless you provide additional coding, this happens one time.
If you continually change the start location (perhaps using a LocationSensor.LocationChanged Block), but maintain the same end location, a developer can provide continuously changing directions based on new coordinates when her or his code sets the 'start location' to the current location and calls the RequestDirections.
Are you doing something like this and need to stop it? You did not share your code so no one knows how to recommend a solution for your issue.
If you are constantly calling RequestDirections, you could prevent or pause the navigation requests if you:
- provide a Switch plus appropriate code to temporarily bypass the RequestDirections call
- or use a Button to toggle use of the RequestDirections
- or do something appropriate for the code you wrote.
- Navigation does not have a way to stop navigation once requested.