Geocoding.GetPlacemarksAsync 方法

定义

重载

GetPlacemarksAsync(Location)

检索指定 Location给定位置的潜在地标。

GetPlacemarksAsync(Double, Double)

检索由坐标指定的给定位置的潜在地标。

GetPlacemarksAsync(Location)

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

检索指定 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))

参数

location
Location

一个 Location 实例,用于查找附近的标记。

返回

Placemark最匹配坐标的列表;null如果未找到任何标记,则为 。

适用于

GetPlacemarksAsync(Double, Double)

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

检索由坐标指定的给定位置的潜在地标。

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))

参数

latitude
Double

用于查找地标的纬度坐标。

longitude
Double

用于查找地标的经度坐标。

返回

Placemark最匹配坐标的列表;null如果未找到任何标记,则为 。

适用于