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

フィードバックを送信します

この POST リクエスト は、シカゴのレストラン ( wego.here.com に掲載)が電話、電子メール、および Web サイトの URL を変更したことを報告しています。

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

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

POST リクエスト URL が feedback エンドポイントをアドレス指定します。

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

POST リクエスト ボディはフィードバックを指定します。

[{
  "type":"Point",
  "coordinates":[-87.63245,41.88425],
  "properties": {
    "v": "2.7",
    "referenceIds" : ["276397653"],
    "details": "Update of phone number, URL and e-mail",
    "phone": "+1 111 2 333",
    "email": "MyPlace@MyPlace.com",
    "URL":  "www.MyPlace.com",
    "error": 31,
    "currentValues": {
       "phone": "+1 111 2 350"
    },
    "appId": "{YOUR_APP_ID}"
  }
}]

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

  • 送信されたレビジョンを識別するグローバル一意 ID ( GUID )
  • リビジョンのステータスを追跡するための ID
  • フィードバックで送信された情報
  • タイムスタンプおよび layerID 情報
[
  {
    "layerId": "grp|wiki|WIKI_MAP_FEEDBACK",
    "lastUpdateTS": 1418201039323,
    "coordinates": [
      -87.63245,
      41.88425,
      0
    ],
    "guid": "039b3a2bcf036607b43b569dd34a584a993543cb",
    "id": -19752,
    "type": "Point",
    "createdTS": 1418201039323,
    "properties": {
      "referenceIds": [
        "276397653"
      ],
      "type": "Point",
      "error": 31,
      "URL": "www.MyPlace.com",
      "phone": "+1 111 2 333",
      "v": "2.7",
      "appId": "{YOUR_APP_ID}",
      "details": "Update of phone number, URL and e-mail",
      "email": "MyPlace@MyPlace.com"
    }
  }
]