Search code examples
androidgeolocationcompass-geolocation

WindDirection from point to point (or location)


I have two points. Now is it possible to tell what windDirection one point is from another (eg Africa lays south of Europe)?


Solution

  • Perhaps Location.bearingTo(Location) is what you're looking for.

    http://developer.android.com/reference/android/location/Location.html

    You'd just need to map ranges of return values to north, east, etc.