1

I am trying to resume navigation in the route that is cached but I could hardly find any method which could perform that feature in SKmaps. Therefore I am trying to customize the rerouting technique so that the user will be navigated to the same route.

Is there any way to perform custom rerouting in skobbler map?

This question is similar to the one posted in SKForum

Ranjana Dangol
  • 1,319
  • 2
  • 13
  • 24

1 Answers1

1

What do you mean by "resume navigation in the cached" route? Are you referring to the saveRouteToCache and loadRouteFromCache APIs? (details here)

A rerouting call is triggered whenever the navigation engine detects that you are no longer following the route - i.e. you've been "matched" to a street/street segment that is not part of the original route. When recalculating the route, the same route settings used for the original route calculation are used (same end point, same routing profile, same via points) - the only difference being the start position (which is you current position).

In the scenario you have described on the forums you are calculating a route from a list of points and I'm assuming that you are starting to navigate on that particular route. Once you start moving I'm assuming that the navigation engine detects that you are not on the route (cannot really tell without looking at your input data) and triggers a rerouting call - at that time the routing engine attempts to create a route from your current position to the initial route and fails.

If you'd like to stop the rerouting logic, when you receive the call to onReRoutingStarted, call stopNavigation and trigger a route recalculation with your own routing engine.

Ando
  • 11,199
  • 2
  • 30
  • 46
  • I meant that when I start the navigation, stop it and want to resume the navigation from the skposition where I have stopped.(here the route is being cached(saveRouteToCache) which is then loaded(loadRouteFromCache). Here I want to implement the pause/resume feature to the navigation on provided route so i want to recalculate the route depending on the user's current position which might deviate from the given skpositions. – Ranjana Dangol Jul 19 '16 at 07:45