Thursday 16 June 2011

Identify user's location [ Region/Sub Region ] based on IP address

 Your current best bet is probably GeoKit (http://github.com/andre/geokit-gem for gem, http://github.com/andre/geokit-rails for plugin). It has built in functionality for Yahoo and Google API keys, distance calculation helpers, reverse geolocation, etc.  Also Can find basic information of an IP like street_address, city, state,  zip etc. (As needed)
Please find details here http://geokit.rubyforge.org/api/geokit-gem/Geokit/GeoLoc.html