The HTML5 Geolocation API is used to get the Geographical location or position of the user. And I'm sure, many of you must have gone into a website, whether it's an e-commerce site or something else, and had a pop-up in your browser asking if it can get your location. And, this is most likely an HTML5 website that's using Geolocation API.