Geolocation means recognizing or identifying the user’s location or any device’s location by the use of various data collection mechanisms. Most of the time these types of services use GPS devices or network routing addresses. Geolocation varies in support of various devices. Some browsers support geolocation while some don’t. So it can’t be said confidently that geolocation is always possible for a web application.
Some browsers use IP addresses to determine the user’s location. But using IP addresses to determine the user’s location will just give a rough idea of the user position.
I totally disagree with this logic of using the IP address to determine the geolocation. The word geolocation also means the latitude and longitude coordinates of a particular location.
In this article, we will see how geolocation works and the different capabilities it offers us. We will also see how easy it is to build an application to retrieve the user’s location.
#javascript #geolocation #ip address #api