Re: [android-developers] Gps sorting question

2010-02-06 Thread Jiri
Ok, so if I use plain simple trigonometry there is some inaccuracy. I can live with that. Thank you Frank Frank Weiss wrote: It's that simple unless you want to account for latitude compression or obstacles. Latitude compression is usually negligible if the latitude bounds are small (<0.2 deg

Re: [android-developers] Gps sorting question

2010-02-05 Thread Frank Weiss
It's that simple unless you want to account for latitude compression or obstacles. Latitude compression is usually negligible if the latitude bounds are small (<0.2 degrees), otherwise use great circle computation, which involves more calculation. Most nearness calculations are done "as the bird fl

[android-developers] Gps sorting question

2010-02-05 Thread Jiri
How does one calculate the sorting of gps data in an order of close -> far. So when I have a list of geopoints, and I know my own location, how do I sort that data based on the closest by points. Can I consider each geo point data as x and y positions and then do some trigonometry on the points