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 #171281 is a reply to message #171279] Thu, 30 December 2010 01:06 Go to previous messageGo to previous message
RMP is currently offline  RMP
Messages: 6
Registered: December 2010
Karma:
Junior Member
Seems like your model needs to eat a lots of cookies or even cache some results :P

This will be a hudge amount of data so you better think about some algorithm to divide and conquer your problem. For example build a subset:

If you are in (Lat/Long) 35° 18' S 149° 7' E and want to find ONE nearest point then first take a look around and get everything that is 35 S 149 E. If there are more than get more detailled. Otherwise spread more. And so on.

This rectangle around your pos might speed up your algorithm, because only a small subset left over to deal with.
[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: Sat Nov 23 10:49:13 GMT 2024

Total time taken to generate the page: 0.05867 seconds