Share via


GeocodingExtensions.GetPlacemarksAsync(IGeocoding, Location) Method

Definition

Retrieve potential placemarks for a given location specified by Location.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task<System::Collections::Generic::IEnumerable<Microsoft::Maui::Devices::Sensors::Placemark ^> ^> ^ GetPlacemarksAsync(Microsoft::Maui::Devices::Sensors::IGeocoding ^ geocoding, Microsoft::Maui::Devices::Sensors::Location ^ location);
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);
static member GetPlacemarksAsync : Microsoft.Maui.Devices.Sensors.IGeocoding * Microsoft.Maui.Devices.Sensors.Location -> System.Threading.Tasks.Task<seq<Microsoft.Maui.Devices.Sensors.Placemark>>
<Extension()>
Public Function GetPlacemarksAsync (geocoding As IGeocoding, location As Location) As Task(Of IEnumerable(Of Placemark))

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