How to submit safety camera feedback
This tutorial explores how to submit a safety camera feedback. The error code determines if the Safety Camera needs to be added (70), has incorrect information (71) or doesn't exist (72).
HTTP header fields
Map Feedback API POST requests require the following HTTP header fields: Option 1: APIKEY authentication
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-8Option 2: APP_ID / APP_CODE authentication (deprecated)
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-8Request
https://maphub.api.here.com/feedback/The POST request requires the following POST body.
[{
"type":"Point",
"coordinates":[-87.63245,41.88425],
"properties": {
"error": 70,
"details": "There is some new saftey cam.",
"domain": {
"cameraType": 3,
"heading": 120,
"gpsSpeed": {
"unit": "m/h",
"value": 43
}
},
"appId": "{YOUR_APPID}"
}
}]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
[
{
"lastUpdateTS": 1495042637682,
"guid": "bae9fb0215abeeafc708b9d592ca0a232be25b99",
"id": 132499,
"type": "Point",
"createdTS": 1495042637682,
"coordinates":[-87.63245,41.88425],
"properties": {
"error": 70,
"details": "There is some new saftey cam.",
"domain": {
"cameraType": 3,
"heading": 120,
"gpsSpeed": {
"unit": "m/h",
"value": 43
}
},
"appId": "intheCAcRA4esTu84PuN",
"isocc": "DEU"
}
}
]Updated last month