Working out how far on postcode is from another

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
tom8521
Forum Commoner
Posts: 25
Joined: Thu May 13, 2010 6:24 am

Working out how far on postcode is from another

Post by tom8521 »

Some social networking websites require you to provide a postcode on sign up. When searching other online members, you are able to see other members in order of distance from your postcode.

My Question: How exactly is this done? I am requiring the same sort of thing for my website :)
eruna
Forum Newbie
Posts: 17
Joined: Mon Jun 28, 2010 2:02 pm

Re: Working out how far on postcode is from another

Post by eruna »

The place I would look it is the Google map API. You can use the geo encoder for things like that.
Post Reply