|
First thing that comes to mind: you do mean zip code, right? In your post you said XXX XXXX, which looks like a phone number, minus the area code ( NPA ). With the right data, you could tie a phone number to a specific location a lot better than you can with zip codes, but that data is kept under lock and key.
One problem is that in a city, a zip code might cover a few dozen blocks, but in rural areas, it could be 50 square miles. I don't know your product, where it might be sold, or anything ... but if it's sold in North Dakota, a zip code might have three stores, and you won't know which is the closest. You should ask for addresses. I don't have the URL ( although Google can find it for you if you go this route ), but there's a free geo-coding web service, where you send an address, and it sends latitude and longitude.
The last problem is making use of the data. Whatever form you get it in, you have to do some math to find the closest store to the user. I'm guessing that would be easiest with lata/long, but I could be wrong here.
Finally, you might want to look into Google Maps; you could embed them into your page easily and without cost. If you decide to go with addresses and turn them into lat/lon, you can add little pin markers to the maps, let the user get directions, and all of that.
|