Submit a semi-structured suggestion
Important note
This Map Product Comment Tracker API is unavailable on a Freemium or Pay As You Grow (PAYG) basis.
Click Request Access to contact our Sales team.
Purpose
This endpoint is used to submit a new semi-structured map suggestion.
Request data
HTTPS method: POST
- Constants and parameters enclosed in curly brackets { } must be replaced with their values.
- Please see the following Request parameters section with the required and optional parameters tables for these values. The generic URL format is as follows.
URL request ormat
https://{baseURL}/api/suggestion
POST request body format
1{2 "feedbackType": "POI",3 "operation": "ADD",4 "attributes": {},5 "comment": "example comment",6 "severity": "MEDIUM",7 "language": "string",8 "geometry": {9 "wkt": "LINESTRING(73.843013 18.528474,73.843015 18.52858,73.843634 18.52973,73.843974 18.53035,73.844544 18.53139)"10 },11 "referenceId": "1a0f0693-97ef-4564-81a1-3903643966b4",12 "featureId": "string",13 "mapProduct": {14 "name": "example name",15 "version": "1.0.0.01"16 },17 "filesInfo": [18 {19 "url": "https://www.evidence.com/photo.jgp",20 "key": "string",21 "type": "image/png"22 }23 ],24 "additionalFields": {}25}
Request parameters
The following table describes the parameters that can be used in a request.
- Required parameters must be used or the call will fail.
- Optional parameters may be used.
- The order of request parameters is not important.
Required parameters | Description |
---|---|
| Category of the suggestion |
| Intent of the suggestion. |
| Exact point/area where the error is located on the map in the form of WKT. |
Optional parameters | Description |
---|---|
| Contains the old values (attribute value as currently seen on map) as well as the new values which the user wants to be rectified. |
| Used to provide additional remarks by the user, with details which could help to solve this error.e. |
| Severity of the suggestion. |
| Language used in the suggestion. |
| This field can be used to add an identifier for this particular feedback. |
| Product name and version of the map on which the user experienced the error. |
| Contains a field to provide a direct url of the evidence, a key field which would uniquely identify this particular file and a type field for the appropriate MIME media type. |
| Allows the user to insert any other additional fields to be used in the suggstion. |
Response data
Response body
The following JSON code block demonstrates a successful response from the API server.
1{2 "id": "string"3}
Response fields
The following table describes all of the fields that can appear in a response.
Primary fields | |
---|---|
Description | Description |
| The ID of the suggestion that was submitted. This field will internally be transformed as the originalId to be used to query its status. |
Response codes
Code | Meaning and possible causes |
---|---|
| OK |
| Bad request:
|
| Forbidden:
|
Example
HTML Method: POST
https://suggestion.fdp.orbisplatform.com/api/general/suggestion
1{2 "feedbackType": "ADDRESS",3 "operation": "ADD",4 "attributes": {5 "currentValuesInMap": {6 "houseNumber": "1",7 "geometry": {8 "wkt": "LINESTRING(73.843013 18.528474,73.843015 18.52858,73.843634 18.52973,73.843974 18.53035,73.844544 18.53139)"9 }10 }11 },12 "comment": "Wrong house number",13 "geometry": {14 "wkt": "LINESTRING(73.843013 18.528474,73.843015 18.52858,73.843634 18.52973,73.843974 18.53035,73.844544 18.53139)"15 },16 "referenceId": "1a0f0693-97ef-4564-81a1-3903643966b4",17 "mapProduct": {18 "name": "example name",19 "version": "1.0.0.01"20 },21 "filesInfo": [22 {23 "url": "https://www.evidence.com/photo.jgp",24 "key": "string",25 "type": "image/png"26 }27 ],28 "additionalFields": {}29}
Response body example
1{2 "id": "544be2b6-81f9-4c16-a393-3499bc2f0f69"3}