次の方法で共有


MapsSearchClient.SearchPointOfInterest メソッド

定義

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

public virtual Azure.Response<Azure.Maps.Search.Models.SearchAddressResult> SearchPointOfInterest (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 SearchPointOfInterest : string * Nullable<bool> * Nullable<Azure.Maps.Search.OperatingHoursRange> * Azure.Core.GeoJson.GeoBoundingBox * Azure.Maps.Search.SearchPointOfInterestOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Maps.Search.Models.SearchAddressResult>
override this.SearchPointOfInterest : string * Nullable<bool> * Nullable<Azure.Maps.Search.OperatingHoursRange> * Azure.Core.GeoJson.GeoBoundingBox * Azure.Maps.Search.SearchPointOfInterestOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Maps.Search.Models.SearchAddressResult>
Public Overridable Function SearchPointOfInterest (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 Response(Of SearchAddressResult)

パラメーター

query
String

検索する POI 名 ("自由の女神像"、"starbucks"など) は、適切に URL エンコードされている必要があります。

IsTypeAhead
Nullable<Boolean>

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

OperatingHours
Nullable<OperatingHoursRange>

POI (ポイント オブ インタレスト) の操作時間。 操作時間の可用性は、使用可能なデータによって異なります。 渡されない場合、営業時間情報は返されません。

BoundingBox
GeoBoundingBox

[境界ボックス]

options
SearchPointOfInterestOptions

その他のオプション

cancellationToken
CancellationToken

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

戻り値

適用対象