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
  • 798
  • 11
  • 23
Praveen Kumar
  • 497
  • 1
  • 7
  • 31

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
  • 2,986
  • 3
  • 45
  • 58