|
Web Contractors Web Developer Jobs Join Us / Log in Discussion |
Postcode Search
Submitted by ned on Sat, 03/03/2007 - 09:58
How do you make a postcode search? I want to locate stores by entering a postcode then a radius.
:)
New forum topics
- Freelance Web developer wanted
- Ringtone fatigue
- web developer looking for more project
- PHP website maintenance
- Desk available for hire - Rushcutters Bay location
- ZAMP?
- Don't hack the Drupal Core. Make a patch!
- What to charge for site updates
- Start New Website or CMS business. Business Partner / designer
- Code snippets in Google Search Results
- [syd] Freelance developer - .NET/ PHP/ Actionsctipt / DHTML
- Tester needed
- Freelance SharePoint 2003 / 2007 Consultant
- Joomla and Community Builder Module
- PHP export to CSV


You need to get hold of a list of all the Australian Postcodes with thier longitudes and latitudes. I downloaded something here: http://www.communicatemedia.com.au/postcodes.php You'll have to import all that CSV into a table.
You'll need to run some trig calulations on to work out which postcodes fall within the radius.
Something like this:
-
That query probably won't run without a little debugging
It's unlikely that the postcode geolocations will be 100% accurate. I think from memory there are about 16000 postcodes in Australia and not all the coordinates will be right.
Thanks! I think I can get this running.
See:
http://www.freelancewebdeveloper.net.au/topic.php?id=279
I have a product available
I have a product available at http://www.dreamscapemedia.com.au/products/aus_postcode_locator/index.php for AUD $165 that will let you do this.
Googpel Maps API
The Google maps API has a geo converter thingy that will take an Address and convert it into a Latitude and Longitude. I don't know how you'd go about converting everything.
Post new comment