Jump to content

Does any website offer this ?


phpdeveloper82

Recommended Posts

You will need longitude / latitude co-ordinates for each postcode. Then you can use the haversine formula to find things within a given distance of an originating point. Websites like Google Maps use this for instance when you need the distance between point A and point B.

 

Resources

http://en.wikipedia.org/wiki/Haversine_formula

http://www.pjenkins.co.uk/blog/index.php/2007/04/04/uk_post_code_distance_calculation/

(doesn't matter that it is UK, same formula)

 

Also take a look at:

http://www.booking.com/city/gb/london.html

You can see the formula in action. The blue module on the left shows places and landmarks that are near the current location (I think it is a 12km radius).

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.