Override geolocation with the Sensors tool

Many websites take advantage of user location in order to provide a more relevant experience for the users. For example, a weather website may show the local forecast in a user's area, after the user has granted the website permission to access the current user location.

If you are building a UI that changes depending on where the user is located, you probably want to make sure that the site behaves correctly in different places around the world. To override your geolocation in Microsoft Edge DevTools, complete the following actions.

  1. Select Control+Shift+P (Windows, Linux) or Command+Shift+P (macOS) to open the Command Menu.

    Screenshot of the Command Menu.

  2. Type sensors, select Panel: Show Sensors, and then select Enter. The Sensors tool opens at the bottom of the DevTools window.

  3. From the Geolocation list select one of the preset cities, like Tokyo, or choose Custom location to enter custom longitude and latitude coordinates, or choose Location unavailable to display how your site behaves when the user's location is not available.

    Screenshot of selecting Tokyo from the Geolocation list.


Portions of this page are modifications based on work created and shared by Google and used according to terms described in the Creative Commons Attribution 4.0 International License. The original page is found here and is authored by Kayce Basques (Technical Writer, Chrome DevTools & Lighthouse).

Creative Commons License This work is licensed under a Creative Commons Attribution 4.0 International License.