バージョンごとに変更セットを取得します
インタラクティブマップ レイヤー への正常な書き込みトランザクションは、 1 つの変更セットとして保存されます。この変更セットには、 1 つ以上の機能に適用された変更を含めることができます。
次のリクエストは、レイヤーからバージョンごとに 1 つの変更セットを取得します。 レイヤーへの正常な書き込みトランザクションは、 1 つの変更セットとして保存されます。この変更セットには、 1 つ以上の機能に適用された変更を含めることができます。
応答ペイロードは複数のページに分割できます。次のページはプロパティ「 nextPageToken 」に記述され、「 pageToken 」パラメータを使用して取得できます。
GET /<Base path for the interactive API from the API Lookup Service>/layers/{layerId}/changesets/{versionNumber}
Host: <Hostname for the interactive API from the API Lookup Service>
Authorization: Bearer <Authorization Token>
Cache-Control: no-cache
次のサンプル応答が返されます。
{
"type": "Changeset",
"version": "{versionNumber}",
"author": "VCHQGjitkpbAXBbmSWP2",
"createdAt": 1680007463079,
"inserted": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"id": "Q1369587",
"geometry": {
"type": "Point",
"coordinates": [
-62.696667,
8.3125
]
},
"properties": {
"name": "Polideportivo Cachamay",
"sport": "association football",
"capacity": 41600
}
}
]
},
"updated": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"id": "Q947065",
"geometry": {
"type": "Point",
"coordinates": [
-110.948889,
32.228889
]
},
"properties": {
"name": "Arizona Stadium",
"sport": "American football",
"capacity": 56037
}
}
]
},
"deleted": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"id": "Q1369587",
"geometry": {
"type": "Point",
"coordinates": [
-62.696667,
8.3125
]
},
"properties": {
"name": "Murrayfield Stadium",
"sport": "rugby union",
"capacity": 67144
}
}
]
}
}
注
代わりに、認可ヘッダーで OAuth ベアラトークン の代わりに API キー を使用することもできます。