سؤال

I'm using the function in Android Location class: http://developer.android.com/reference/android/location/Location.html#distanceBetween(double, double, double, double, float[])

To get the distance between two geographical points, but I don't know how the result in results[0] unit, is it in meters, miles or what?

Distance and bearing are defined using the WGS84 ellipsoid.

But I don't know what "WGS84 ellipsoid" means and how to convert that to meters or miles!

هل كانت مفيدة؟

المحلول

From the link that you provided

Computes the approximate distance in meters between two locations

and

The computed distance is stored in results[0]

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top