Portal Home > Knowledgebase > Articles Database > PHP Store Distance calculation
PHP Store Distance calculation
Posted by riscphree, 12-07-2007, 10:20 AM |
What I'd like to be able to do is have the user input their zip code and have it find the nearest stores. I know there are ways to find the distance using latitude and longitude for the zip codes, but I don't have the lat and long for them.
Has anyone done this before and can offer hints/suggestions?
|
Posted by ThatScriptGuy, 12-07-2007, 11:50 AM |
Yeah - Get a database with latitudes and longitudes for zip codes.
Or, even better, do a google search for php store locator or php zip code store locator and I'm sure you can find a script to do what you want
|
Posted by riscphree, 12-07-2007, 12:14 PM |
I can get a db with lat and long for zip codes, but how will I link that in with the db of the stores I already have? I have zipcodes for them but now sure on how to go about that.
|
Posted by ThatScriptGuy, 12-07-2007, 12:23 PM |
Just google for a premade script. There are plenty out there that already exist. You enter your store details in the backend and the script does the rest.
|
Add to Favourites Print this Article
Also Read
Jonesolutions (Views: 784)