Re: mileage calculator

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> I know a lot of sites, such as car dealerships, where you can put in your
> zip code and then you can search for cars within 50,100, etc miles of your
> house.  How is this done?  I have a site that we want to implement a
feature
> like this.  What is stored in the db?  Can I simply write a function using
> zipcodes to find distance?  I know you can use latitude and longitude.

Do a search on Google. You can buy databases that have zip codes and their
long/lat coordinates. You can then use an equation to calculate "distances"
and find zip codes that are close to another one.

---John Holmes...


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux