POST api/poi/save
Adds POI's Processes this poi API request. The parameter and response sections describe the data exchanged with the API.
Request Information
URI Parameters
None.
Body Parameters
The poi save command data contract supplied with the request.
PoiSaveCommandDataContract| Name | Description | Type | Additional information |
|---|---|---|---|
| Latitude |
The latitude value. |
decimal number |
None. |
| Longitude |
The longitude value. |
decimal number |
None. |
| Name |
The name value. |
string |
None. |
| PrimaryType |
The primary type value. |
EnumDataContract |
None. |
| Types |
The collection of types. |
Collection of EnumDataContract |
None. |
| Id |
The unique identifier of this resource. |
integer |
None. |
Request Formats
application/x-www-form-urlencoded
Sample:
Sample not available.
application/json, text/json
Sample:
{
"Latitude": 1.1,
"Longitude": 2.1,
"Name": "sample string 3",
"PrimaryType": {
"Id": 1,
"Name": "sample string 2",
"SystemName": "sample string 3"
},
"Types": [
{
"Id": 1,
"Name": "sample string 2",
"SystemName": "sample string 3"
},
{
"Id": 1,
"Name": "sample string 2",
"SystemName": "sample string 3"
}
],
"Id": 4
}
Response Information
Resource Description
The response returned after the operation completes.
PoiDataContract| Name | Description | Type | Additional information |
|---|---|---|---|
| CenterPoint |
The center point value. |
PointDataContract |
None. |
| Name |
The name value. |
string |
None. |
| PrimaryType |
The primary type value. |
EnumDataContract |
None. |
| Types |
The collection of types. |
Collection of EnumDataContract |
None. |
| Id |
The unique identifier of this resource. |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"CenterPoint": {
"Latitude": 1.1,
"Longitude": 2.1,
"Altitude": 3.1,
"Order": 4,
"Id": 5
},
"Name": "sample string 1",
"PrimaryType": {
"Id": 1,
"Name": "sample string 2",
"SystemName": "sample string 3"
},
"Types": [
{
"Id": 1,
"Name": "sample string 2",
"SystemName": "sample string 3"
},
{
"Id": 1,
"Name": "sample string 2",
"SystemName": "sample string 3"
}
],
"Id": 2
}