Geocoding.GetPlacemarksAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.