Why do you need geolocation?
There are a several ways to find geolocation of a user: HTML5 API, Cell Signal and IP Address to name a few. Pairing of IP address to a geographical location is the method we used to provide geolocation data. There are times when you need to identify where your web visitors are coming from. You might have an ecommerce website, and would like to know where your potential customers are, pre-populate country code on forms, display different language and reduce credit card fraud based on geographic location. Or, you might want to fight against illegal spammers and hackers, and would like to locate source of a problem.
Although it would be nice to be able to find precise location of a visitor, it is almost impossible to find exact location of a host given its IP address. However, there are tools available to help identify approximate location of the host. ARIN Whois database provides a mechanism for finding contact and registration information for IP resources registered with ARIN.