GeocodingExtensions.GetPlacemarksAsync(IGeocoding, Location) Method

Definition

Retrieve potential placemarks for a given location specified by Location.

C#
public static System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.Maui.Devices.Sensors.Placemark>> GetPlacemarksAsync(this Microsoft.Maui.Devices.Sensors.IGeocoding geocoding, Microsoft.Maui.Devices.Sensors.Location location);

Parameters

geocoding
IGeocoding

The object this method is invoked on.

location
Location

A Location instance to find placemarks near.

Returns

List of Placemark that best match the coordinates or null if no placemarks are found.

Exceptions

Thrown when location is null.

Applies to

Производ Верзије
.NET MAUI 8, 9