On 03/29/2010 11:21 PM, Patrick wrote:
Of course, the source code. I didn't think of that. Thank you Andreas.

If the differences are small, both the value of pi and the nominal
radius of the earth may account for the differences between two
implementations.

Mike


On Mar 30, 2:44 am, Andreas<[email protected]>  wrote:
Yes.

According to the source code (http://source.android.com/download), the
section 4 of this document is used to calculate the 
distance:http://www.ngs.noaa.gov/PUBS_LIB/inverse.pdf

Good luck.

On Mar 29, 3:31 pm, Patrick<[email protected]>  wrote:

Hello!
I'm developing an Android app with a web for GPS data handling. The
android app collects GPS data and then uploads them to a server (Java
Tomcat).
In the android app, the distance is calculated using the the
distanceTo-method in the android.location package (Location class) and
it seems to work fine.
But the problem is when I try do to the same in the web, using the
uploaded GPS data (I don't upload the distance between GPS position,
but latitude, longitude, altitude, time and speed). I still haven't
found an algorithm that calculate the distance between GPS positions
with the same result as the distanceTo-method. The best I have found
so far is this 
one:http://www.gavaghan.org/blog/free-source-code/geodesy-library-vincent....
Does anyone know how the distanceTo-method calculates the distance.
Best regards,
Patrick

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to