Website Building Question about a zip code proximity calculator?
January 15, 2011 by Webs Resource
Filed under Website Building
I am building a java/php coded website and need to integrate a program that can calculate the distance between zip codes on the website itself. Any suggestions or experiences with something like this?





I think the simplest and cheapest solution will be to use Google MAPS API.
You need to make a call and will get response back.
Follow tutorial here:
http://briancray.com/2009/04/01/how-to-calculate-the-distance-between-two-addresses-with-javascript-and-google-maps-api/#finaljscode
Generally search for any API which can provide distance or radius between two postcodes (zip codes)
If you want to have it done client side, you can do it with the google maps api. If you would like to do it server side, so you can store the result, then mysql supports spatial datatypes. postgres and oracle do too. Read up on MySql Spatial to learn how to do spatial queries in your database.
Most states have a geodata portal which will allow you to download zip code boundaries(they’re really polygons, not points), and after that you just need to find a tool to load them into your database. A copy of Safe FME works wonders for this case.
Heh here is the solution!!!
Heh i feel pleasure to share my experience about hosting!!!
According to my experience i made us of this site http://www.thewebpole.com/ & builded a site got satisfactory result with damn
good solution!!!
They are very much good in providing services !!!
This site provide the hosting services at cheap cost than other hosting company..
Try out this site to get the hosting services ..
Cheers-)
You can get the free sample codes for Distance Calculation using Latitude and Longitude in Java and PHP from http://www.zipcodeworld.com/developers.htm .
Hope this helps.