MapLocationFinder
public static class MapLocationFinderSupported platforms
Example
using XPlat.Services.Maps;
...
private async void OnReverseGeocodeButtonClick(object sender, RoutedEventArgs e)
{
// The location to reverse geocode.
var location = new XPlat.Device.Geolocation.BasicGeoposition { Latitude = 47.643, Longitude = -122.131 };
var pointToReverseGeocode = new XPlat.Device.Geolocation.Geopoint(location);
// Reverse geocode the specified geographic location.
XPlat.Services.Maps.MapLocationFinderResult result =
await XPlat.Services.Maps.MapLocationFinder.FindLocationsAtAsync(pointToReverseGeocode);
// If the query returns results, display the address of the first result.
if (result.Status == XPlat.Services.Maps.MapLocationFinderStatus.Success)
{
System.Diagnostics.Debug.WriteLine($"Address - {result.Locations[0].Address}");
}
}Static Methods
Task FindLocationsAtAsync(Geopoint)
Parameters
Returns
Task FindLocationsAtAsync(Geopoint, MapLocationDesiredAccuracy)
Parameters
Returns
Related information
References
Last updated