Windows Maps was previously used to manually set a default location in Windows. Since the Maps application is no longer available, many people wonder how to manually enter a location into Windows 10.
Windows still supports a manually entered fallback location called DefaultGeoposition. This page explains how to set it using Windows PowerShell.
Enter the latitude and longitude for the location you want Windows to use. The page will automatically generate the PowerShell commands for you.
Latitude:
Longitude:
Altitude (Optional):
About Altitude:
Altitude is optional. Windows BasicGeoposition uses meters.
If you enter altitude in feet, this page automatically converts it to
meters.
If altitude is left blank, the value will be set to 0.
Recommended method:
Click Copy My Command, then paste the entire command block into
Windows PowerShell at one time and press Enter.
Do not enter the Latitude, Longitude, or Altitude lines before the first line that begins with:
PowerShell should display the latitude, longitude, and altitude after the command block runs. Verify that the information is correct before continuing.
Press Windows Key + R, type the following, and press Enter:
Windows 10 version 1607 or later supports the DefaultGeoposition feature used in this procedure.
Right-click the Windows Start button and select:
Windows PowerShell
Administrator privileges were not required during testing on Windows 10 22H2.
Copy and paste the following command into PowerShell:
If successful, PowerShell should display information showing the Geolocator class.
Enter the following command:
If nothing is displayed, you probably do not currently have a manually configured default location.
You will need the latitude and longitude for the location you want Windows to use.
Use the PowerShell Command Generator above, or manually enter your coordinates using this format:
After running the command block, PowerShell should display your latitude, longitude, and altitude. Verify that the latitude and longitude are correct before continuing.
Altitude is measured in meters. For normal Windows location services, altitude generally is not important, and leaving it set to 0 is appropriate for most users.
Once you have confirmed your coordinates, enter:
If successful, PowerShell may simply return to the command prompt without displaying anything.
Enter:
You should see your latitude, longitude, and altitude displayed.
DefaultGeoposition provides Windows with a manually entered fallback location when Windows cannot determine your location automatically.
Windows may still use more accurate location information when it is available.
The altitude value used by Windows BasicGeoposition is measured in meters.
If you know your elevation in feet, the PowerShell Command Generator above will automatically convert it to meters.
For most typical Windows location services, altitude is not important. Leaving the altitude value at 0 is normally appropriate.
Simply repeat Steps 5 through 7 using your new latitude and longitude.
This procedure uses the Windows Runtime Geolocation API:
The DefaultGeoposition feature is available in Windows 10 version 1607 and later.