The Haversine formula to calculate distances:
- #C example http://blogs.techrepublic.com.com/programming-and-development/?p=634
- A lot of talking … http://mathforum.org/library/drmath/view/51879.html
- http://www.ruby-forum.com/topic/48815
Get ZIP codes in range
- http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/174783
- http://forums.devshed.com/php-development-5/how-can-i-search-my-database-using-an-array-like-534211.html?p=2052453
- http://www.hotscripts.com/listing/zip-code-range-and-distance-calculation-class/
Ruby Gems
- http://github.com/collectiveidea/graticule/tree/master
- http://github.com/andre/geokit-gem/tree/master
- http://github.com/andre/geokit-rails/tree/master
Finding visitors via their IP address
- http://www.hostip.info/
Use Google Maps to display the results check this post here