Tuesday, February 7, 2012

Does anyone know of a fast way to do a distance calculator?

I need to put a distance calculator in a website to calculate the distance of any two cities. I already know a little PHP. I tried to do the latitude and longitude thing with the sin and cos, and link it to the Google Maps database in order to pull the zips but it's just returning the miles for one trip and I can't input any other zips. I really need help!Does anyone know of a fast way to do a distance calculator?
Try to use Google Maps API there you have lot of functions. You don't need to give zips directly you can get distance on two cities.

No comments:

Post a Comment