-1

Ok, Hello everyone (sorry for my English). I have a task to make some good location service. I use google and stackoverflow , find a lot of tutorials, but i want to ask am i right? I have destination point and my current geo position. I draw route like this tutorial http://iamvijayakumar.blogspot.com/2013/04/android-draw-route-between-two-geo.html, and now i want to react if my current position changed, so i implement OnMyLoactionChangeListner, and now the question: if my position change i have to get new rout from url and redraw my polyline, or i can just make a marker and mark my new position above the old route polyline? what decision is right? Thanks for all

1 Answers1

0

I think that best would be to check if your current position is on the old route. If so, you could just shorten the first polyline. But if the position is outside of the route, you have to recalculate it.

Rafael T
  • 15,401
  • 15
  • 83
  • 144