Geocoding.GetPlacemarksAsync Method

Definition

Overloads

GetPlacemarksAsync(Location)

Retrieve potential placemarks for a given location specified by Location.

GetPlacemarksAsync(Double, Double)

Retrieve potential placemarks for a given location specified by coordinates.

GetPlacemarksAsync(Location)

Source:
Geocoding.shared.cs
Source:
Geocoding.shared.cs

Retrieve potential placemarks for a given location specified by Location.

public:
 static System::Threading::Tasks::Task<System::Collections::Generic::IEnumerable<Microsoft::Maui::Devices::Sensors::Placemark ^> ^> ^ GetPlacemarksAsync(Microsoft::Maui::Devices::Sensors::Location ^ location);
public static System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.Maui.Devices.Sensors.Placemark>> GetPlacemarksAsync (Microsoft.Maui.Devices.Sensors.Location location);
static member GetPlacemarksAsync : Microsoft.Maui.Devices.Sensors.Location -> System.Threading.Tasks.Task<seq<Microsoft.Maui.Devices.Sensors.Placemark>>
Public Shared Function GetPlacemarksAsync (location As Location) As Task(Of IEnumerable(Of Placemark))

Parameters

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.

Applies to

GetPlacemarksAsync(Double, Double)

Source:
Geocoding.shared.cs
Source:
Geocoding.shared.cs

Retrieve potential placemarks for a given location specified by coordinates.

public:
 static System::Threading::Tasks::Task<System::Collections::Generic::IEnumerable<Microsoft::Maui::Devices::Sensors::Placemark ^> ^> ^ GetPlacemarksAsync(double latitude, double longitude);
public static System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.Maui.Devices.Sensors.Placemark>> GetPlacemarksAsync (double latitude, double longitude);
static member GetPlacemarksAsync : double * double -> System.Threading.Tasks.Task<seq<Microsoft.Maui.Devices.Sensors.Placemark>>
Public Shared Function GetPlacemarksAsync (latitude As Double, longitude As Double) As Task(Of IEnumerable(Of Placemark))

Parameters

latitude
Double

The latitude coordinate to find placemarks.

longitude
Double

The longitude coordinate to find placemarks.

Returns

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

Applies to