使用 Amazon Location 管理您的地圖資源 - Amazon Location Service

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

使用 Amazon Location 管理您的地圖資源

本主題涵蓋 Amazon Location Service 內地圖的管理和組態。它說明如何建立和自訂地圖資源,讓您針對以位置為基礎的應用程式自訂映射體驗。

您可以使用 Amazon Location 主控台、 AWS CLI或 Amazon Location 管理您的地圖資源APIs。

列出地圖資源

您可以使用 Amazon Location 主控台、 或 Amazon Location AWS CLI來檢視地圖資源的清單APIs。

Console

使用 Amazon Location 主控台檢視現有地圖資源的清單

  1. 在 開啟 Amazon Location 主控台https://console.aws.amazon.com/location/

  2. 從左側導覽窗格中選擇地圖

  3. 在我的地圖 下檢視您的地圖資源清單。

API

使用 Amazon Location Maps 中的 ListMaps操作APIs。

下列範例是取得 AWS 帳戶中地圖資源清單的API請求。

POST /maps/v0/list-maps

以下是 的範例回應ListMaps

{ "Entries": [ { "CreateTime": 2020-10-30T01:38:36Z, "DataSource": "Esri", "Description": "string", "MapName": "ExampleMap", "UpdateTime": 2020-10-30T01:38:36Z } ], "NextToken": "1234-5678-9012" }
CLI

使用 list-map 命令。

下列範例是 AWS CLI ,以取得 AWS 帳戶中的地圖資源清單。

aws location list-maps

取得地圖資源詳細資訊

您可以使用 Amazon Location 主控台、 AWS CLI或 Amazon Location 取得AWS帳戶中任何地圖資源的詳細資訊APIs。

Console

使用 Amazon Location 主控台檢視地圖資源的詳細資訊

  1. 在 開啟 Amazon Location 主控台https://console.aws.amazon.com/location/

  2. 從左側導覽窗格中選擇地圖

  3. 我的地圖 下,選取目標地圖資源的名稱連結。

API

使用 Amazon Location Maps 中的 DescribeMap操作APIs。

下列範例是取得 的地圖資源詳細資訊的API請求 ExampleMap.

GET /maps/v0/maps/ExampleMap

以下是 的範例回應DescribeMap

{ "Configuration": { "Style": "VectorEsriNavigation" }, "CreateTime": 2020-10-30T01:38:36Z, "DataSource": "Esri", "Description": "string", "MapArn": "arn:aws:geo:us-west-2:123456789012:maps/ExampleMap", "MapName": "ExampleMap", "Tags": { "Tag1" : "Value1" }, "UpdateTime": 2020-10-30T01:40:36Z }
CLI

使用 describe-map 命令。

下列範例是 AWS CLI ,以取得 的地圖資源詳細資訊 ExampleMap.

aws location describe-map \ --map-name "ExampleMap"

刪除地圖資源

您可以使用 Amazon Location 主控台、 AWS CLI或 Amazon Location ,從 AWS 您的帳戶刪除地圖資源APIs。

警告

此操作會永久刪除資源。

Console

使用 Amazon Location 主控台刪除現有的地圖資源

  1. 在 開啟 Amazon Location 主控台https://console.aws.amazon.com/location/

  2. 從左側導覽窗格中選擇地圖

  3. 我的地圖清單下,從清單中選取目標地圖。

  4. 選擇刪除地圖

API

從 Amazon Location Maps 使用 DeleteMap操作APIs。

下列範例是刪除地圖資源的API請求 ExampleMap.

DELETE /maps/v0/maps/ExampleMap

以下是 的成功回應範例DeleteMap

HTTP/1.1 200
CLI

使用 delete-map 命令。

下列範例是刪除地圖資源的 AWS CLI 命令 ExampleMap.

aws location delete-map \ --map-name "ExampleMap"