地図フィードバック API 開発者ガイド

フィードバックを再度開く

ユーザーが、以前にコミットされたフィードバックが閉じられていることを確認しました。 ユーザーが結果を承認しないため、フィードバックを再度開く必要があります。

HTTP ヘッダーフィールド

地図フィードバック API の POST リクエストには、次の HTTP ヘッダーフィールドが必要です。

オプション 1 : apiKey 認証

Auth-Service-Id: here_app
Auth-Identifier: apikey
Auth-Secret: {YOUR_APIKEY}
Content-Type: application/vnd.here.layerObjectList+json; charset=UTF-8

オプション 2 : APP_ID/APP_CODE 認証 (廃止)

Auth-Service-Id: here_app
Auth-Identifier: {YOUR_APP_ID}
Auth-Secret: {YOUR_APP_CODE}
Content-Type: application/vnd.here.layerObjectList+json; charset=UTF-8

リクエスト

https://maphub.api.here.com/feedback/

POST リクエスト には、次の POST ボディ が必要です。

[{
  "id": -12345,
  "properties": { 
    "jobStatus": "REOPENED",
    "investigationDetails": "Please re-investigate the case. I have evidence that the place is at a new location." 
    }
}]

レスポンス

リクエストに対する応答には、次の内容が含まれます。

  • 前に送信され、完了したフィードバックを特定する、グローバルに一意の ID
  • 再オープンされたフィードバックを識別する新しい GUID
  • リビジョンのステータスを追跡するための ID
  • フィードバックで送信された情報
  • フィードバックを再度開く理由を説明するメモ
  • タイムスタンプおよび layerID 情報
[{
  "previousGuid": "3b92ce04724759eb83f4d47243d5be3255a7ed44",
  "layerId": "wikvaya/feedback/main",
  "isoCountryCode": "USA",
  "lastUpdateTS": 1500472970020,
  "coordinates": [-88.63245, 42.88425, 0],
  "guid": "838347529fa4a46a1b7213f80aec324452112c0e",
  "id": -12345,
  "type": "Point",
  "nodeId": "feedback",
  "createdTS": 1500472630676,
  "properties": {
    "jobStatus": "REOPENED",
    "referenceIds": ["976397653"],
    "investigationDetails": "Please re-investigate the case. I have evidence that the place is at a new location.",
    "error": 31,
    "languageCode": "eng",
    "zipcode": "60605",
    "jobId": -501685,
    "number": "114",
    "jobSolution": "NONE",
    "v": "2.7",
    "appId": "<your app_id>",
    "isocc": "USA",
    "details": "MyPlace has moved to a different location two blocks away from old location",
    "currentValues": {
      "coordinates": [-87.63245,
      41.88425],
      "name": "MyPlace",
      "zipcode": "60610",
      "number": "44",
      "roadname": "Old Street name"
    },
    "roadname": "East Congress Parkway"
  },
  "states": [null,
  null,
  null,
  "WIP"]
}]
注 : このリクエストは、プロパティを jobSolution に設定 NONE し、次のフィードバックプロパティをリセットします。
  • acceptedValues
  • rejectedValues
  • jobSolutionDetails
  • jobSolutionNotes
  • mapRelease