locked
Geolocator::GetGeopositionAsync() returns no CivicAddress RRS feed

  • Question

  • I am getting the latitude & Longitude values but Civic address is coming null. If anybody know the reason

    please specify

    async private void GetGeolocation() { Geolocator myGeolocator = new Geolocator(); myGeolocator.DesiredAccuracyInMeters = 50; try { Geoposition pos = await myGeolocator.GetGeopositionAsync( maximumAge: TimeSpan.FromMinutes(5), timeout: TimeSpan.FromSeconds(10) ); string latitude = pos.Coordinate.Latitude.ToString(); string Longitude = pos.Coordinate.Longitude.ToString(); Windows.Devices.Geolocation.CivicAddress add = pos.CivicAddress;


    Friday, February 22, 2013 6:57 AM

Answers

  • Hi kshitijaggarwal,

    As noted in the other thread you posted in, the CivicAddress is not currently implemented. You will need to pass the latitude and longitude to an external service to get the civic address. For example, you can use the Bing Maps API: Find a Location by Point .

    --Rob 

    Saturday, February 23, 2013 3:10 AM
    Moderator