![]() |
Google Maps API to calculate distance between zips? (solved)
Anyone know how to accomplish this feat?
I am trying to calculate the distance between one zip code and another (for a store locater). You can see it working here: Ligo Products - Quality Imported Furniture - Find Stores I got it pretty much working, but I have two problems: the zip database I got from USPS does not seem to be very accurate, it (obviously) does not include Canadian postal codes, and for some reason, some zip codes either do not exist on the database, or the distance is not registered for some reason (making it seem as if that particular zip code is nowhere to be found). I am using the following to find the distance in miles between one longitude/latitude and another PHP Code:
Not only would I like to just implement the GMaps API, instead of digging through my code to find the culprit; I would also like to make the search much more accurate, which is not possible with the zips DB I have currently. Thanks for the help! |
so... no ideas?
|
|
| All times are GMT. The time now is 11:40 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0