Find the closest locations to a given address

Posted by xtine on Stack Overflow See other posts from Stack Overflow or by xtine
Published on 2010-04-29T09:59:55Z Indexed on 2010/04/29 10:37 UTC
Read the original article Hit count: 214

Filed under:
|
|
|
|

I have built an application in CakePHP that lists businesses. There are about 2000 entries, and the latitude and longitude coordinates for each business is in the DB.
I now am trying to tackle the search function.

There will be an input box where the user can put a street address, city, or zipcode, and then I would like it to return the 11 closest businesses as found from the database.

How would I go about doing this?

© Stack Overflow or respective owner

Related posts about geolocation

Related posts about distance