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

メディア添付ファイル付きのフィードバック

ユーザーが wego.here.com にアクセスして おり、シカゴのレストランが不足していることがわかりました。 前記の場所にその場所が存在することを証明するために、フィードバックに画像を含める必要があります。

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 ボディ に次のものが必要です。

  • Postman のボディ編集モードを キー値編集に設定します。
  • feedback キーおよび {"coordinates":[0,0,0],"type":"Point","properties":{"error": 0}} その値としてを入力します。
  • ( またはファイルの別のラベル ) myfileを入力し、 [ ファイルの選択 ] をクリック してファイルを参照します。

レスポンス

応答には、添付ファイルのプロパティが含まれています。

[
  {
    "layerId": "wikvaya/feedback/main",
    "lastUpdateTS": 1498572240282,
    "coordinates": [
      0,
      0,
      0
    ],
    "guid": "41ff48e8363ff623ec0d35bf3fdb671decc62dd5",
    "id": -302601,
    "type": "Point",
    "createdTS": 1498572240282,
    "nodeId": "feedback",
    "properties": {
      "attachments": [
        {
          "name": "F08B87B7.PNG",
          "type": "image/png"
        }
      ],
      "error": 0
    }
  }
]

フィードバックステータスの追跡についての詳細 は、「フィードバックステータスの追跡」を参照してください。