- Find and lock a lost Windows device
- Turn on Find my device
- Find your Windows device
- Lock your Windows device remotely
- Windows. Devices. Geolocation Namespace
- Classes
- Structs
- Interfaces
- Enums
- Examples
- Windows 10 location service and privacy
- How the location settings work
- Location history
- Default location
- Geofencing
- Cortana
- Microsoft Edge
- How we build the location services database
- How we help keep you informed: the location icon
- To show or hide the location icon:
- How to control location settings
- To turn the Windows location settings on or off:
Find and lock a lost Windows device
Find My Device is a feature that can help you locate your Windows 10 device if it’s lost or stolen. To use this feature, sign in to your device with a Microsoft account and make sure you’re an administrator on it. This feature works when location is turned on for your device, even if other users on the device have turned off location settings for their apps. Any time you attempt to locate the device, users using the device will see a notification in the notification area.
This setting works for any Windows device, such as a PC, laptop, Surface, or Surface Pen. It needs to be turned on before you can use it.
You can’t use it with a work or school account, and it doesn’t work for iOS devices, Android devices, or Xbox One consoles. Here’s what to do if your Xbox gets stolen.
Turn on Find my device
When you set up a new device, you can decide whether to turn on or turn off the Find my device setting. If you turned it off during setup and now want to turn it on, make sure your Windows device is connected to the internet, has enough battery power so it can send its location, and that you’re signed in to the device using your Microsoft account.
On the device that you want to change, select Start > Settings > Update & Security > Find my device.
Select Change for the device you want to change.
Find your Windows device
Select the Find My Device tab.
Choose the device you want to find, and then select Find to see a map showing your device’s location.
Note: You can locate a shared device only if you have an administrator account on it. On the shared device, select Start > Settings > Account > Your info to see if you’re an administrator.
Lock your Windows device remotely
When you find your device on the map, select Lock > Next.
Once your device is locked, you can reset your password for added security. For more info about passwords, see Change or reset your Windows password.
Windows. Devices. Geolocation Namespace
Provides APIs for getting the current location or tracking the device’s location over time. Location information may come from estimating a position from beacons like Wi-Fi access points and cell towers, from the device’s IP address, or it may come from other sources such as a GNSS or GPS device. The Windows.Devices.Geolocation API provides the most appropriate geolocation data from all available sources.
The accuracy of the location information depends on the source. The latitude and longitude may vary within the following ranges:
- GPS : within approximately 10 meters
- Wi-Fi : between approximately 30 meters and 500 meters
- Cell towers : between approximately 300 meters and 3,000 meters
- IP address : between approximately 1,000 meters and 5,000 meters
In addition to latitude and longitude, GPS also provides information about heading, speed, and altitude. This additional information is optional when the location information comes from other sources.
The user sets the privacy of their location data with the location privacy settings in the Settings app. Your app can access the user’s location only when:
- Location for this device. is turned on (not applicable to Windows 10 Mobile)
- The location services setting, Location, is turned on
- Under Choose apps that can use your location, your app is set to on
For more information about location privacy, see the Windows Privacy Statement.
Starting in Windows 10, call the RequestAccessAsync before accessing the user’s location. At that time, your app must be in the foreground and RequestAccessAsync must be called from the UI thread. Until the user grants your app permission to their location, your app can’t access location data.
Location services architecture
The first layer of the location services architecture consists of hardware in the device. This includes the GPS receiver, Wi-Fi, and the cellular radio. These can all function as providers of location data with varying levels of accuracy and power consumption. On top of the hardware sits the native code layer. This layer communicates directly with the available sources of location data and decides which sources to use to determine the location of the device based on the availability of data and on the performance requirements specified by the application. The native code layer also communicates over the Internet with a Microsoft-hosted web service to look up location-related information from a database. The top layer of the location service is the managed interface, exposed through a DLL that is included with Windows SDK. An app uses this interface to start and stop location requests, to set the level of accuracy required by the app, and to receive location data from the native code layer as it becomes available.
Classes
Represents a rectangle that defines a geographic area.
Describes a geographic circle with a center point and a radius.
Contains the information for identifying a geographic location.
Provides additional information about a Geocoordinate. This information is only applicable to position estimates obtained using satellite signals.
Provides access to the current geographic location.
Represents an ordered series of geographic points.
Describes a geographic point.
Represents a location that may contain latitude and longitude data or venue data.
Represents a Visit-related state change. See Guidelines for using Visits tracking for information on how to use this feature.
Handles the monitoring of a user’s Visits when the app is in use (not in the background).
Contains information about a VisitStateChanged event.
Manages the details of a trigger for a Visits-related background task.
Provides data for the PositionChanged event.
Provides information for the StatusChanged event.
Represents the venue associated with a geographic location.
Structs
The basic information to describe a geographic position.
Interfaces
Interface to define a geographic shape.
Enums
Indicates the altitude reference system to be used in defining a geographic shape.
Indicates if your app has permission to access location data.
Indicates the shape of a geographic region.
Indicates the requested accuracy level for the location data that the application uses.
Indicates the source used to obtain a Geocoordinate.
Indicates the ability of the Geolocator object to provide location data.
Contains values that describe the intended scope of location monitoring for use with the Visits feature.
Contains values that describe a Visit-related state change.
Examples
Sample applications that use classes from this namespace include the Geolocation sample and the Geotag sample.
Windows 10 location service and privacy
Some apps need to know when you’re in a specific location to work correctly. For instance, if you’ve asked an app to remind you to buy bread when you’re in the grocery store, the app will need to know when you’re in the store. To give you maps to get you where you’re going, or to show you lists of shops or restaurants near you, many apps and services request location information from your device. That’s what the Windows 10 location service does: tells your apps and services where you are or where you’ve been, so that you can get info more relevant to you.
When we collect data, we want to make sure it’s the right choice for you. That’s why we provide info about the location service and settings described here. To learn more about location and your privacy, see the location sections of the Microsoft Privacy Statement.
How the location settings work
The device location setting enables certain Windows features such as auto-setting the time zone or Find my device to function properly. When the device location setting is enabled, the Microsoft location service will use a combination of global positioning service (GPS), nearby wireless access points, cell towers, and your IP address to determine your device’s location. Depending on the capabilities of your device, your device’s location can be determined with varying degrees of accuracy and may in some cases be determined precisely.
If you have enabled the device location setting, your device sends de-identified location information (including wireless access point information, cellular tower information, and precise GPS location if available) to Microsoft after removing all personally identifiable information at the device. This de-identified copy of location information is used to improve Microsoft location services and, in some instances, shared with our location service provider partners, currently HERE, to improve the location services of the provider.
Additionally, you can allow apps to use your device’s location and location history to deliver location-aware services as precisely as your device supports. If you grant a specific app access to your device’s location on the settings page, that app will have access to precise location information. Otherwise the location information provided to the app has lower accuracy. When your location is used by a location-aware app or Windows service or feature, your location information and recent location history are stored on your device.
If you are signed in with your Microsoft account and location history has been enabled, your last known location information is also saved to the cloud, where it is available across your devices to other apps or services that use your Microsoft account. If you are signed in with your Microsoft account and your device cannot reliably determine your current location on its own (such as when you are in a building or basement), apps or services can use your last known location from your location history that is stored in the cloud if it is available.
There are some exceptions to how your device’s location can be determined that are not directly managed by the location settings.
Desktop apps are a specific type of app that won’t ask for separate permission to discover your device location information and won’t appear in the list that allows you to choose apps that can use your location. What are desktop apps? They’re usually downloaded from the internet or installed with some type of media (such as a CD, DVD, or USB storage device). They’re launched using an .EXE or .DLL file, and they typically run on your device, unlike web-based apps (which run in the cloud).
Even when you’ve turned off the device location setting, some third-party apps and services could use other technologies (such as Bluetooth, Wi-Fi, cellular modem, etc.) to determine your device’s location with varying degrees of accuracy. Microsoft requires third-party software developers that develop apps for our Microsoft Store or develop apps using Microsoft tools to respect the Windows location settings unless you’ve provided any legally required consent to have the third-party developer determine your location. However, to further reduce the risk that an app or service can determine your location when the Windows device location setting is off, you should only install apps and services from trusted sources. For more comprehensive protection of your location, you could consider disabling radio-based components of your device such as Wi-Fi, Bluetooth, cellular modem, and GPS components, which might be used by an app to determine your precise location. However, doing so will also impair other experiences such as calling (including emergency calling), messaging, internet connectivity, and connecting to peripheral devices like your headphones. Please read the privacy policies of the apps and services you’ve installed to learn more about how they use your device’s location.
To facilitate getting help in an emergency, whenever you make an emergency call, Windows will attempt to determine and share your precise location, regardless of your location settings. In addition, your mobile operator will have access to your device’s location if your device has a SIM card or is otherwise using a cellular service.
Location history
Some Windows apps and services that use location info also use your location history. When the location setting is on, locations looked up by apps or services will be stored on the device for a limited time (24 hours in Windows 10), then deleted. Apps that have access to this info will be labeled Uses location history on the Location settings page.
Default location
You can set a default location for your device that Windows, apps, and services can then use when a more exact location can’t be detected using GPS or other methods.
Geofencing
Some apps use geofencing, which can turn on or off particular services or show you information that might be useful when you’re in an area defined (or “fenced”) by the app. An app can only use geofencing if location has been turned on for that app. If any of your Windows apps are using geofencing, you’ll see One or more of your apps are currently using geofencing on the Location settings page.
Cortana
Cortana works best when she has access to your device location and location history, which she uses to help you—for example, by giving you traffic alerts before you need to leave or reminders based on location like “You’re near the grocery store, where you wanted to buy milk.” Cortana collects your location periodically even if you’re not interacting with her, like when you connect to Wi-Fi or disconnect from Bluetooth. When Cortana is turned on, the Search app also has access to your device location information and will automatically send it to Bing when Cortana suggests web search terms and results for Bing to use as described in the Privacy Statement. If you don’t want Cortana to have access to your device location, follow these steps:
Go to Start > Settings > Cortana.
Select Permissions or Permissions & History.
Select Manage the information Cortana can access from this device.
Turn the Location setting to Off.
Microsoft Edge
When location is turned on for Microsoft Edge, you still have control over which websites can access your device location. Microsoft Edge will ask for your permission the first time you visit a website that requests your location information. You can turn off location permission for a website in Microsoft Edge settings.
There are two versions of Microsoft Edge that can be installed on Windows 10. The new Microsoft Edge is downloadable and considered a desktop app. Follow these steps to turn on location for the new Microsoft Edge:
Go to Start > Settings > Privacy > Location.
Turn on Allow access to location on this device.
Turn on Allow apps to access your location.
Turn on Allow desktop apps to access your location if present.
The legacy version of Microsoft Edge is the HTML-based browser that was released with Windows 10 in July 2015. Follow these steps to turn on location for the legacy version of Microsoft Edge:
Go to Start > Settings > Privacy > Location.
Turn on Allow access to location on this device.
Turn on Allow apps to access your location.
Under Choose which apps can access your precise location, switch the Microsoft Edge setting to On.
How we build the location services database
To help us provide location services, Microsoft records the location of mobile cell towers and Wi-Fi access points. Our database might include the MAC addresses of your wireless router or other Wi-Fi network devices. We don’t associate MAC addresses with you personally or with the devices connected to your network.
To prevent Microsoft from using the MAC addresses of your Wi-Fi access points in our location services database, go to Opt out of location services.
How we help keep you informed: the location icon
When one or more apps are currently using your device location through the Windows location service, you’ll see the location icon in the notification area of your taskbar (on Windows 10 PCs) or in the status bar at the top of your screen (on Windows 10 Mobile devices). The icon won’t be shown for geofencing.
To show or hide the location icon:
On Windows 10 PCs:
Go to Start > Settings > Personalization > Taskbar.
Under Notification area, select Select which icons show on the taskbar.
Turn the Location Notification setting On or Off.
On Windows 10 Mobile:
Select Privacy > Location.
Turn Show location icon on or off.
If you’re using a device assigned to you by your workplace, or if you’re using a personal device at your workplace, you might not be able to change the location settings. If that’s the case, Some settings are managed by your organization will appear at the top of the Location settings page.
How to control location settings
Windows location settings give you control over whether Windows features can access your device’s location and which Windows apps can use your device’s location and location history information. To check your location settings, go to Start > Settings > Privacy > Location.
To clear location history, either restart your device, or go to Start > Settings > Privacy > Location, and under Location history, select Clear. Clearing the location history only clears the history on the device. Apps that accessed the history before it was cleared may have stored it elsewhere. Refer to your apps’ privacy policies for more info.
To clear location history that’s been stored in the cloud and is associated with your Microsoft account, go to account.microsoft.com, and make sure you’re signed in to your account. Select Clear location activity, and then select Clear.
To turn the Windows location settings on or off:
Go to Start > Settings > Privacy > Location.
Do one of the following:
To control location for the whole device if you’re an administrator on the device, select Change, and then in the Location for this device message, switch the setting to On or Off.
To control location for just your user account, switch the Allow apps to access your location setting to On or Off. If Location for this device is off appears on the settings page, you won’t be able to turn on the Allow apps to access your location setting for an individual user account. (Note that in previous versions of Windows, this setting was called Location service.)
On Windows 10 PCs, you can add or remove the Location tile from the notification area at the far right of the taskbar. Here’s how:
Go to Start > Settings > System > Notifications & actions.
Under Quick actions, select Edit your quick actions.
Add, remove, or move the Location tile.
On your mobile device:
Go to Settings > Privacy > Location.
Select Location to turn it on or off.
To change whether an individual app can have access to your precise location:
Go to Start > Settings > Privacy > Location.
Turn each app on or off where it appears under Choose which apps can access your precise location. On a device, each person can do the same for their own accounts. If Allow apps to access your location is turned Off for your user account, the on/off switches can’t be turned on until Allow apps to access your location is turned On.
To change the default location for your PC, which Windows, apps, and services can use when a more exact location can’t be detected:
Go to Start > Settings > Privacy > Location.
Under Default location, select Set default.
The Windows Maps app will open. Follow the instructions to change your default location.