1

I am implementing google map for draw a route between two locations in Android app. Route is showing, but I am not able to update route when user goes out of route during ride (runtime).

Q. How do i check if user goes out of route and how to update route on google map without refreshing map. Please help.

Thanks,
Nisha

Nisha
  • 45
  • 9

1 Answers1

0

->You can update the polyline without restarting/refreshing the map using the polyline.setPoints(new points); method.

->Check my answer here on how to dynamically update the points of polyline.

update polyline according to the user moving android googleMaps v2

Hantash Nadeem
  • 458
  • 6
  • 10