次の方法で共有


MapsSearchClient.SearchPointOfInterestAsync メソッド

定義

目的地 (POI) 検索を使用すると、名前で POI の結果を要求できます。 検索では、言語などの追加のクエリ パラメーターや、国や境界ボックスによって主導される関心領域による結果のフィルター処理がサポートされています。 エンドポイントは、クエリ文字列に一致する POI 結果のみを返します。 応答には、住所、座標の位置とカテゴリのペアなどの POI の詳細が含まれます。

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Maps.Search.Models.SearchAddressResult>> SearchPointOfInterestAsync (string query, bool? IsTypeAhead = default, Azure.Maps.Search.OperatingHoursRange? OperatingHours = default, Azure.Core.GeoJson.GeoBoundingBox BoundingBox = default, Azure.Maps.Search.SearchPointOfInterestOptions options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member SearchPointOfInterestAsync : string * Nullable<bool> * Nullable<Azure.Maps.Search.OperatingHoursRange> * Azure.Core.GeoJson.GeoBoundingBox * Azure.Maps.Search.SearchPointOfInterestOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Maps.Search.Models.SearchAddressResult>>
override this.SearchPointOfInterestAsync : string * Nullable<bool> * Nullable<Azure.Maps.Search.OperatingHoursRange> * Azure.Core.GeoJson.GeoBoundingBox * Azure.Maps.Search.SearchPointOfInterestOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Maps.Search.Models.SearchAddressResult>>
Public Overridable Function SearchPointOfInterestAsync (query As String, Optional IsTypeAhead As Nullable(Of Boolean) = Nothing, Optional OperatingHours As Nullable(Of OperatingHoursRange) = Nothing, Optional BoundingBox As GeoBoundingBox = Nothing, Optional options As SearchPointOfInterestOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SearchAddressResult))

パラメーター

query
String

検索する POI 名 (例: "自由の女神"、"starbucks") は、正しく URL エンコードされている必要があります。

IsTypeAhead
Nullable<Boolean>

Boolean です。 typeahead フラグが設定されている場合、クエリは部分入力として解釈され、検索は予測モードになります。

OperatingHours
Nullable<OperatingHoursRange>

POI (目的地) の操作時間。 操作時間の可用性は、使用可能なデータによって異なります。 渡されない場合、営業時間情報は返されません。

BoundingBox
GeoBoundingBox

[境界ボックス]

options
SearchPointOfInterestOptions

その他のオプション

cancellationToken
CancellationToken

使用する取り消しトークン。

戻り値

適用対象