

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# 特定の位置の静的マップを取得する方法
<a name="get-static-map-specific-position"></a>

このトピックでは、特定のパラメータに基づいて Amazon Location Service から静的マップを取得する方法について説明します。中心位置、境界ボックス、一連の境界位置の静的マップを生成する方法について説明します。ここに示す例は、マップの幅、高さ、スタイルをカスタマイズするのに役立ちます。

**注記**  
静的マップを生成するときは、`map` または `map@2x` のいずれかを渡す必要があります。

## 中央位置のマップイメージを取得する
<a name="get-map-center-position"></a>

この例では、幅が `1024`、高さが `1024` で、中心座標が `-123.1143,49.2763`、`longitude=-123.1143` と `latitude=49.2763`、ズームレベルが `15` のマップイメージを作成します。

------
#### [ Request URL ]

```
https://maps.geo.eu-central-1.amazonaws.com/v2/static/map?style=Satellite&width=1024&height=1024&zoom=15&center=-123.1156126,49.2767046&key=API_KEY
```

------
#### [ Response image ]

![\[Aerial view of a coastal city with dense urban layout, harbor, and large stadium visible.\]](http://docs.aws.amazon.com/ja_jp/location/latest/developerguide/images/static-center.png)


------

## 境界ボックスのマップイメージを取得する
<a name="get-map-bounding-box"></a>

この例では、エリアの境界ボックスを設定して、東南アジアのマップイメージを生成します。

`bbox` の形式は `{southwest_longitude},{southwest_latitude},{northeast_longitude},{northeast_latitude}` です。

------
#### [ Request URL ]

```
https://maps.geo.eu-central-1.amazonaws.com/v2/static/map?style=Satellite&width=1024&height=1024&bounding-box=90.00,-21.94,146.25,31.95&key=API_KEY
```

------
#### [ Response image ]

![\[Satellite view of Southeast Asia, showing mainland, islands, and surrounding waters.\]](http://docs.aws.amazon.com/ja_jp/location/latest/developerguide/images/static-bounding-box.png)


------

## 境界位置のマップイメージを取得する
<a name="get-map-bounded-positions"></a>

この例では、座標 (経度、緯度) で指定されたパリにある複数の必見スポットをカバーするマップを生成します。境界位置には、エッフェル塔、ルーブル美術館、ノートルダム大聖堂、シャンゼリゼ、エトワール凱旋門、サクレクール寺院、リュクサンブール公園、オルセー通り、コンコルド広場、ガルニエ宮などがあります。

境界位置の形式は `{longitude1},{latitude1},{longitude2},{latitude2} ... {longitudeN},{latitudeN}` です。

------
#### [ Request URL ]

```
https://maps.geo.eu-central-1.amazonaws.com/v2/static/map?style=Satellite&width=1024&height=1024&bounded-positions=2.2945,48.8584,2.3376,48.8606,2.3500,48.8529,2.3076,48.8698,2.2950,48.8738,2.3431,48.8867,2.3372,48.8462,2.3266,48.8600,2.3212,48.8656,2.3317,48.8719&key=API_KEY
```

------
#### [ Response image ]

![\[Aerial view of Paris showing dense urban layout, Seine River, and iconic landmarks.\]](http://docs.aws.amazon.com/ja_jp/location/latest/developerguide/images/static-bounding-position.png)


------