4

So if we have a local journey planner, would it be possible to display the route on the Skobbler map?

Is there any method on SKMapSurfaceView on Android SDK to pass a route to display it?

Mohamed Taher Alrefaie
  • 15,698
  • 9
  • 48
  • 66

1 Answers1

6

Yes - drawTrackElement

You can see an example in the demo project, the Tracks menu entry.

If you have the route points/list of segments, then you can draw them on the map using a SkPolyline - see the getting started chapter: http://developer.skobbler.com/getting-started/android#sec009

Ando
  • 11,199
  • 2
  • 30
  • 46
  • Your answer is pretty unclear. SKtrackElement needs a file. WHile in my case, I have a list of coordinates of each start and end of road segment. Does skobbler have a better way to handle this scenario? – Mohamed Taher Alrefaie Nov 05 '14 at 17:33
  • I've updated my answer - is the current answer better or are there still questions? – Ando Nov 06 '14 at 16:52