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. 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. The device location setting enables certain Windows features such as auto-setting the time zone or Find my device to function properly.
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. 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. 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. Some apps need to know when you’re in a specific location to work correctly. If you are located outdoors with a clear view of the sky, yet your mobile device is still unable to provide accurate location information, please check and change the permission settings of the apps that use a GPS signal, change the power mode of your mobile device and check if apps using GPS is placed under sleeping apps.How to Turn On or Off Location Services in Windows 10
When the GPS is properly enabled on your mobile device, it will work inside a house or building, however, due to the potential obstacles that may block connection with satellites, it is not recommended to use this feature while you are indoors.