I want to create a simple application that will show me the city of the current application. When I tried the code, which I will insert below, it returns an empty value for the city, and it returns for the country = USA, but I live in Belgium.
Accordingly, the link It states: Location services provide access to location functions such as cell triangulation, WiFi (via IP address) and GPS. In addition, many modern devices somehow support location resolution, the application must handle the case when location services cannot resolve the location, or the user has disabled location services from the control panel.
My laptop does not have GPS, but with an IP address it should know the city and country.

using System; using System.Collections.Generic; using System.IO; using System.Linq; using Windows.Foundation; using Windows.Foundation.Collections; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Controls.Primitives; using Windows.UI.Xaml.Data; using Windows.UI.Xaml.Input; using Windows.UI.Xaml.Media; using Windows.UI.Xaml.Navigation; using Windows.Devices.Geolocation; using System.Threading.Tasks;
source share