How to determine a location from IP address

Hello,

I want to know how to determine a location from IP address in Rails.
For example, 124.108.48.2 is from which country, using which ISP, Time
Zone, lat and lng.
Appreciate if have any ideas?

Thanks
Chamnap

Thanks steve and mike.