[android-developers] Re: Find long/lat distance X from current location

2009-08-23 Thread alexdonnini
Hi John, Excellent! Connceptually, that's exactly what I was looking for. I will probably need to make some changes to the code but it's a great start. Thank you. Alex Donnini On Aug 22, 2:10 pm, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: This example using a Google map may be

[android-developers] Re: Find long/lat distance X from current location

2009-08-22 Thread Panut Sunyakorn
This will help you. http://www.movable-type.co.uk/scripts/latlong.html 2009/8/22 Mark Murphy mmur...@commonsware.com: alexdonnini wrote: I had already considered using the GCC formula (I did not know the name GCC). Unfortunately, the only lat/lng information I have is mine, none other.

[android-developers] Re: Find long/lat distance X from current location

2009-08-22 Thread Thomas (geomancer)
I had the same problem and found my sources at http://williams.best.vwh.net/avform.htm . Ed Williams goes into detail on great circle navigation. I took his formulas for distance between points and true course and translated them into PHP. Projecting a point is given as well. The translated

[android-developers] Re: Find long/lat distance X from current location

2009-08-22 Thread alexdonnini
Thanks all for the suggestions. Mark, I am well aware that there is an infinite number of points on the circle at distance X from a known location. To start with, for my application, my plan is to find 16-64 of the locations at distance X from my location. That should be sufficient. The problem

[android-developers] Re: Find long/lat distance X from current location

2009-08-22 Thread Mark Murphy
alexdonnini wrote: Mark, I am well aware that there is an infinite number of points on the circle at distance X from a known location. To start with, for my application, my plan is to find 16-64 of the locations at distance X from my location. That should be sufficient. OK, which 16-64?

[android-developers] Re: Find long/lat distance X from current location

2009-08-22 Thread alexdonnini
Thanks. I think I will use the parametric formulas for calculating the coordinates of points on a circle using increments of 1 degree. If that turns out to be too ambitious (because of the performance hit generated by the additional processing once I have calculated the 360 possible locations), I

[android-developers] Re: Find long/lat distance X from current location

2009-08-22 Thread Maps.Huge.Info (Maps API Guru)
This example using a Google map may be useful: (JavaScript) http://maps.huge.info/dragcircle2.htm -John Coryat --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Re: Find long/lat distance X from current location

2009-08-21 Thread Donn Felker
Look up the Great Circle Calculation. That will provide you with the method for finding x within a given y radius. As for finding other geo coordinates, you'll need to find a data source for those or make your own set of data to work with. You might be able to use some Google API for that as well.

[android-developers] Re: Find long/lat distance X from current location

2009-08-21 Thread alexdonnini
Hi Donn, Thanks for the suggestion. Please ignore my other post on this same subject. Alex Donnini On Aug 21, 1:29 pm, Donn Felker donnfel...@gmail.com wrote: Look up the Great Circle Calculation. That will provide you with the method for finding x within a given y radius. As for finding

[android-developers] Re: Find long/lat distance X from current location

2009-08-21 Thread alexdonnini
Donn, I had already considered using the GCC formula (I did not know the name GCC). Unfortunately, the only lat/lng information I have is mine, none other. This is why the problem is a little trickier. Thanks. Alex On Aug 21, 1:29 pm, Donn Felker donnfel...@gmail.com wrote: Look up the Great

[android-developers] Re: Find long/lat distance X from current location

2009-08-21 Thread Mark Murphy
alexdonnini wrote: I had already considered using the GCC formula (I did not know the name GCC). Unfortunately, the only lat/lng information I have is mine, none other. This is why the problem is a little trickier. There are an infinite number of latitude/longitude combinations at a distance