These days it is quite common to see websites asking permission to access user locations. There are multiple use-cases of using location data to personalise your web content and deliver targeted messaging. 

This feature can be enabled in any website by using HTML 5 Geolocation API and is widely supported by all current web browsers including Chrome, Safari, Firefox, IE and Opera.