FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Calculate the distance between 2 points
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Calculate the distance between 2 points [message #171380 is a reply to message #171275] Fri, 31 December 2010 02:25 Go to previous message
Martin is currently offline  Martin
Messages: 8
Registered: October 2010
Karma:
Junior Member
On Dec 29, 11:55 pm, Sarah <dandi....@gmail.com> wrote:
> Hi! I've a table with a list of record that have latitude and
> longitude
>
> I've know new point with a position (new lati and new longi)
>
> how can I show all records that have a distance <= of XX Kilometers??
>
> Is it possible?
>
> Thanks

There's a demo here that might be of use to you:

http://code.google.com/apis/maps/articles/phpsqlsearch.html

Scroll down the page to 'Finding locations nearby with MySQL'.

Martin.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Checking equal number of <div> and </div>
Next Topic: extract variable from an array
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 02:59:38 GMT 2024

Total time taken to generate the page: 0.04150 seconds