@azure-rest/maps-search package
介面
| AddressAdminDistrictsItemOutput | |
| AddressCountryRegionOutput | |
| AddressOutput |
結果的位址 |
| BoundaryOutput |
請注意,服務通常會傳回具有Polygon或 MultiPolygon 子類型的GeometryCollection。 |
| BoundaryPropertiesOutput |
Boundary 對象的屬性。 |
| ErrorAdditionalInfoOutput |
資源管理錯誤其他資訊。 |
| ErrorDetailOutput |
錯誤詳細數據。 |
| ErrorResponseOutput |
所有 Azure Resource Manager API 的常見錯誤回應,以傳回失敗作業的錯誤詳細數據。 (這也遵循 OData 錯誤回應格式。)。 |
| FeaturesItemOutput | |
| FeaturesItemPropertiesOutput | |
| GeoJsonFeatureCollectionDataOutput | |
| GeoJsonFeatureCollectionOutput |
有效的 |
| GeoJsonFeatureDataOutput | |
| GeoJsonFeatureOutputParent |
有效的 |
| GeoJsonGeometryCollectionDataOutput | |
| GeoJsonGeometryCollectionOutput |
有效的 |
| GeoJsonGeometryOutputParent |
有效的 |
| GeoJsonLineStringDataOutput | |
| GeoJsonLineStringOutput |
有效的 |
| GeoJsonMultiLineStringDataOutput | |
| GeoJsonMultiLineStringOutput |
有效的 |
| GeoJsonMultiPointDataOutput |
|
| GeoJsonMultiPointOutput |
有效的 |
| GeoJsonMultiPolygonDataOutput | |
| GeoJsonMultiPolygonOutput |
有效的 |
| GeoJsonObjectOutputParent |
有效的 |
| GeoJsonPointDataOutput |
|
| GeoJsonPointOutput |
有效的 |
| GeoJsonPolygonDataOutput | |
| GeoJsonPolygonOutput |
有效的 |
| GeocodePointsItemOutput | |
| GeocodingBatchRequestBody |
要處理的位址地理編碼查詢/要求清單。 此清單最多可以包含100個查詢,且至少必須包含1個查詢。 |
| GeocodingBatchRequestItem |
Batch Query 物件 |
| GeocodingBatchResponseItemOutput | |
| GeocodingBatchResponseOutput |
此物件會從成功的 Geocoding Batch 服務呼叫傳回。 |
| GeocodingBatchResponseSummaryOutput |
批次要求的摘要 |
| GeocodingResponseOutput |
從成功的地理編碼呼叫傳回此物件 |
| GeometryCopyrightOutput |
Boundary 對象的幾何著作權資訊。 |
| GetGeocoding | |
| GetGeocodingBatch | |
| GetPolygon | |
| GetReverseGeocoding | |
| GetReverseGeocodingBatch | |
| IntersectionOutput |
結果的位址。 |
| MapsSearchClientOptions |
用戶端的選擇性參數 |
| ReverseGeocodingBatchRequestBody |
要處理的反向地理編碼查詢/要求清單。 此清單最多可以包含100個查詢,且至少必須包含1個查詢。 |
| ReverseGeocodingBatchRequestItem |
Batch Query 物件 |
| Routes | |
| SearchGetGeocoding200Headers | |
| SearchGetGeocoding200Response |
在許多情況下,完整的搜尋服務可能太多,例如,如果您只對傳統地理編碼感興趣。 您也可以存取搜尋,以獨佔方式查閱位址。 地理編碼是藉由只叫用有問題的位址或部分位址來叫用地理編碼端點來執行。 地理編碼搜尋索引將會查詢街道層級數據上方的所有專案。 不會傳回任何景點(POIS)。 請注意,地理編碼器對錯字和不完整的位址非常寬容。 它還將處理來自確切街道位址或街道或十字路口以及更高層次的地理位置,如市中心、縣和州。 回應也會傳回詳細的位址屬性,例如街道、郵遞區號、市政和國家/地區資訊。 |
| SearchGetGeocodingBatch200Response |
提交同步批次要求針對輕量型批次要求,建議使用同步 API。 當服務收到要求時,它會在計算批次專案后立即回應,且稍後將不可能擷取結果。 如果要求超過 60 秒,同步 API 會傳回逾時錯誤 (408 回應)。 批次項目的數目限制為此 API 100。
批次要求的 POST 本文若要傳送 地理編碼 查詢,您將使用
geocoding batchItem 物件可以接受任何支援的 地理編碼URI 參數。 批次至少應包含 1 查詢 批次回應模型批次回應包含
|
| SearchGetGeocodingBatchBodyParam | |
| SearchGetGeocodingBatchDefaultResponse |
提交同步批次要求針對輕量型批次要求,建議使用同步 API。 當服務收到要求時,它會在計算批次專案后立即回應,且稍後將不可能擷取結果。 如果要求超過 60 秒,同步 API 會傳回逾時錯誤 (408 回應)。 批次項目的數目限制為此 API 100。
批次要求的 POST 本文若要傳送 地理編碼 查詢,您將使用
geocoding batchItem 物件可以接受任何支援的 地理編碼URI 參數。 批次至少應包含 1 查詢 批次回應模型批次回應包含
|
| SearchGetGeocodingBatchMediaTypesParam | |
| SearchGetGeocodingDefaultResponse |
在許多情況下,完整的搜尋服務可能太多,例如,如果您只對傳統地理編碼感興趣。 您也可以存取搜尋,以獨佔方式查閱位址。 地理編碼是藉由只叫用有問題的位址或部分位址來叫用地理編碼端點來執行。 地理編碼搜尋索引將會查詢街道層級數據上方的所有專案。 不會傳回任何景點(POIS)。 請注意,地理編碼器對錯字和不完整的位址非常寬容。 它還將處理來自確切街道位址或街道或十字路口以及更高層次的地理位置,如市中心、縣和州。 回應也會傳回詳細的位址屬性,例如街道、郵遞區號、市政和國家/地區資訊。 |
| SearchGetGeocodingQueryParam | |
| SearchGetGeocodingQueryParamProperties | |
| SearchGetPolygon200Response |
|
| SearchGetPolygonDefaultResponse |
|
| SearchGetPolygonQueryParam | |
| SearchGetPolygonQueryParamProperties | |
| SearchGetReverseGeocoding200Response |
|
| SearchGetReverseGeocodingBatch200Response |
提交同步批次要求針對輕量型批次要求,建議使用同步 API。 當服務收到要求時,它會在計算批次專案后立即回應,且稍後將不可能擷取結果。 如果要求超過 60 秒,同步 API 會傳回逾時錯誤 (408 回應)。 批次項目的數目限制為此 API 100。
批次要求的 POST 本文若要傳送 反向地理編碼 查詢,您將使用
反向地理編碼 batchItem 物件可以接受任何支援的 反向地理編碼URI 參數。 批次至少應包含 1 查詢 批次回應模型批次回應包含
|
| SearchGetReverseGeocodingBatchBodyParam | |
| SearchGetReverseGeocodingBatchDefaultResponse |
提交同步批次要求針對輕量型批次要求,建議使用同步 API。 當服務收到要求時,它會在計算批次專案后立即回應,且稍後將不可能擷取結果。 如果要求超過 60 秒,同步 API 會傳回逾時錯誤 (408 回應)。 批次項目的數目限制為此 API 100。
批次要求的 POST 本文若要傳送 反向地理編碼 查詢,您將使用
反向地理編碼 batchItem 物件可以接受任何支援的 反向地理編碼URI 參數。 批次至少應包含 1 查詢 批次回應模型批次回應包含
|
| SearchGetReverseGeocodingBatchMediaTypesParam | |
| SearchGetReverseGeocodingDefaultResponse |
|
| SearchGetReverseGeocodingQueryParam | |
| SearchGetReverseGeocodingQueryParamProperties | |
類型別名
| GeoJsonFeatureOutput |
有效的 |
| GeoJsonGeometryOutput |
有效的 |
| GeoJsonObjectOutput |
有效的 |
| MapsSearchClient | |
| SearchGetGeocodingBatchParameters | |
| SearchGetGeocodingParameters | |
| SearchGetPolygonParameters | |
| SearchGetReverseGeocodingBatchParameters | |
| SearchGetReverseGeocodingParameters | |
函式
| default(Azure |
從訂用帳戶金鑰建立 MapsSearchClient 的實例。 範例
|
| default(Token |
從 Azure 身分識別 範例
|
| default(Azure |
從 Azure 身分識別 範例
|
| is |
|
| is |
|
| is |
|
| is |
|
| is |
函式詳細資料
default(AzureKeyCredential, ClientOptions)
從訂用帳戶金鑰建立 MapsSearchClient 的實例。
範例
import { AzureKeyCredential } from "@azure/core-auth";
import MapsSearch from "@azure-rest/maps-search";
const credential = new AzureKeyCredential("<subscription-key>");
const client = MapsSearch(credential);
function default(credential: AzureKeyCredential, options?: ClientOptions): MapsSearchClient
參數
- credential
- AzureKeyCredential
用來驗證服務要求的 AzureKeyCredential 實例
- options
- ClientOptions
用來設定搜尋客戶端的選項
傳回
default(TokenCredential, string, ClientOptions)
從 Azure 身分識別 TokenCredential建立 MapsSearch 的實例。
範例
import { DefaultAzureCredential } from "@azure/identity";
import MapsSearch from "@azure-rest/maps-search";
const credential = new DefaultAzureCredential();
const client = MapsSearch(credential, "<maps-account-client-id>");
function default(credential: TokenCredential, mapsAccountClientId: string, options?: ClientOptions): MapsSearchClient
參數
- credential
- TokenCredential
用來驗證服務要求的 TokenCredential 實例
- mapsAccountClientId
-
string
特定地圖資源的 Azure 地圖服務用戶端識別碼
- options
- ClientOptions
用來設定搜尋客戶端的選項
傳回
default(AzureSASCredential, ClientOptions)
從 Azure 身分識別 AzureSASCredential建立 MapsSearch 的實例。
範例
import { AzureSASCredential } from "@azure/core-auth";
import MapsSearch from "@azure-rest/maps-search";
const credential = new AzureSASCredential("<SAS Token>");
const client = MapsSearch(credential);
function default(credential: AzureSASCredential, options?: ClientOptions): MapsSearchClient
參數
- credential
- AzureSASCredential
用來驗證服務要求的 AzureSASCredential 實例
- options
- ClientOptions
用來設定搜尋客戶端的選項
傳回
isUnexpected(SearchGetGeocoding200Response | SearchGetGeocodingDefaultResponse)
function isUnexpected(response: SearchGetGeocoding200Response | SearchGetGeocodingDefaultResponse): response
參數
傳回
response
isUnexpected(SearchGetGeocodingBatch200Response | SearchGetGeocodingBatchDefaultResponse)
function isUnexpected(response: SearchGetGeocodingBatch200Response | SearchGetGeocodingBatchDefaultResponse): response
參數
傳回
response
isUnexpected(SearchGetPolygon200Response | SearchGetPolygonDefaultResponse)
function isUnexpected(response: SearchGetPolygon200Response | SearchGetPolygonDefaultResponse): response
參數
傳回
response
isUnexpected(SearchGetReverseGeocoding200Response | SearchGetReverseGeocodingDefaultResponse)
function isUnexpected(response: SearchGetReverseGeocoding200Response | SearchGetReverseGeocodingDefaultResponse): response
參數
傳回
response
isUnexpected(SearchGetReverseGeocodingBatch200Response | SearchGetReverseGeocodingBatchDefaultResponse)
function isUnexpected(response: SearchGetReverseGeocodingBatch200Response | SearchGetReverseGeocodingBatchDefaultResponse): response
參數
傳回
response