1

I am developing an app to track vehicles. I get LatLng data's from a device fitted on the vehicle. Then I plot the LatLng's on map and draw Polyline between them. That's working fine. I get the following output. enter image description here

The problem is that I want to show the direction in which the vehicle traveled. I surfed through the Internet but couldn't find a solution. So please anyone guide me on how to draw arrow head in Polylines to show the direction. Thank you.

Hans1984
  • 796
  • 11
  • 24
Praveen Kumar
  • 547
  • 1
  • 7
  • 33

1 Answers1

0

Arrow Mark over Polyline in Android Google Route Map

Also, since you probably get Location from the GPS, and not LatLng you can use Location.bearingTo

Community
  • 1
  • 1
f.khantsis
  • 3,256
  • 5
  • 50
  • 67