Starting around eight years ago, browsers could be tapped by websites to provide an approximate to exact notion of where you are. Fortunately, from nearly the beginning, there was an understanding by those developing standards and implementations that such information should require affirmative permission—opt-in! From the advent, in nearly every case, you’ve been prompted whether or not you wanted to give a site your current location, often with some limitations.
It’s very handy to offer up your whereabouts to, say, a retail chain or bank site, where it can automatically show the nearest locations without you having to type in a zip code. We’re used to this convenience in mobile devices, and iOS has extremely granular app-based location controls. But in a mobile browser, as long as the browser can use location, any site you visit can request position; the permission granted is unique to each site.
Read more here:: How to control when and how your Web browser shares your location