GPS Navigation Guide

I want to rotate ImageViewwith an arrow from the user's current location to some previously saved GPS location. How to do it?

Is the original bearing from the method the Location.distanceBetweenright way? If so, how to use it with the compass?

+5
source share
1 answer

You can use the method bearingToin the class Location, then retrieve the current bearing using the method SensorManager.getOrientation.

Finally, adding both results, draw an arrow.

Hope this helps.

+1
source

All Articles