GPS/location functionality is provided using Windows Location services, which is must be enabled in order for the app to access these services.
The link below describes how to configure Location Services on Windows 10:
See the link below for enabling Windows Location Platform on Windows 7 and 8:
If GPS accuracy is important to your needs, then we strongly recommend using Windows devices with onboard GPS chipset to receive accurate location regardless of network connectivity. Windows 10 devices are also best in terms of ensuring compatibility. Many tablet devices will have a built-in GPS chipset, and external USB chipsets can be purchased for PCs or tablets without built-in GPS. Here are some examples of USB GPS chipsets: https://www.lifewire.com/laptop-computer-gps-1683681
For devices without an onboard GPS chip, Windows will use network information such as IP addresses to determine an approximate user location (usually only accurate to around 15 miles / 25 kilometers, but occasionally can be very inaccurate).