Geocoding.GetLocationsAsync(String) 方法

定义

检索给定地址的潜在位置。

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

参数

address
String

要为其检索位置的地址。

返回

Location最匹配地址的列表;null如果未找到任何位置,则为 。

适用于