Map Feedback API Developer's Guide

Road Conditions Feedback

After the winter season, the city of Chicago has detected new potholes on streets maintained from CDOT. In order to build a geo-referenced inventory of their road infrastructure, the user submits a request to the HERE Map Feedback API, supporting city management activities for preventive and predictive maintenance of city assets.

HTTP Header Fields

Map Feedback API POST requests require the following HTTP header fields:

Group-Id: FGx1AWaAzKOo0imNkLmf
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
Content-Disposition: application/vnd.here.layerObjectList+json; charset=UTF-8
Accept: application/vnd.here.layerObjectList+json
Accept-Charset: charset=UTF-8

Request

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

The POST request requires the following POST body.

[{
  "type": "Point",
  "coordinates": [8.1109931,47.8995140,0],
  "properties": {
    "v": "2.7", 
    "appId": "{YOUR_APP_ID}",
    "error": 980,
    "domain": {
          "type": 1,
          "subType": 1,
          "timeconstraint": { 
           "type" : "seasonal", // ["temporary","allyear","seasonal"]
           "from": "2017-09-30", // format: “YYYY-MM-DD”
           "to":  "2018-03-31"
           },
          "severity": 80, // [0-100]
          "rev": true,
          "surface": 4,  
          "lanenumber": [1,2] 
    },
    "details": "Big new pothole",
    "referenceIds": [ "948902673" ]
  }
}]

Response

The response to the request contains:

  • a globally unique ID (GUID) that identifies the submitted revision
  • id for tracking the status of the revision
  • the information submitted in the feedback
  • timestamp and layerID information
[{
  "layerId": "wikvaya/feedback/main",
  "lastUpdateTS": 1499344145783,
  "isoCountryCode": "DEU",
  "coordinates": [8.1109931,
  47.899514,
  0],
  "guid": "af89f661189a9c957ea2d6e2c06e10a2d7c33423",
  "id": -332531,
  "type": "Point",
  "createdTS": 1499344145783,
  "nodeId": "feedback",
  "properties": {
    "referenceIds": ["948902673"],
    "v": "2.7",
    "appId": "ij4d8J2efq6GwEwtKFwj",
    "domain": {
      "severity": 80,
      "rev": true,
      "surface": 4,
      "timeconstraint": {
        "type": "seasonal",
        "from": "2017-09-30",
        "to": "2018-03-31"
      },
      "subType": 1,
      "lanenumber": [1,
      2],
      "type": 1
    },
    "isocc": "DEU",
    "details": "Big new pothole",
    "error": 980
  }
}]