Skip to:
Content
Pages
Categories
Search
Top
Bottom

Post Code Search

  • Hi Guys,

    I’m looking to have a field in my user’s profiles which contains a postcode. Other users should then be abl to carry out a postcode search and find all users close to the postcode search area.

    I’ve tried looking into geo, maps, etc but am really stuck.

    Does anyone have any pointers?

    Thanks guys.

Viewing 1 replies (of 1 total)
  • Ideally you need a postcode database, but depending on your country, you usually have to pay a fee for that data (the UK does).

    Another approach is to query Google Maps API and get the long/lat from there, and then it’s some math to compare against a given long/lat to find out the distance. It’s been a while since i’ve done that math, so you would have to google to find out.

Viewing 1 replies (of 1 total)
  • The topic ‘Post Code Search’ is closed to new replies.
Skip to toolbar