To create a location use the following API operation.
Request:
POST /location/info
Payload:
{
"name":"English Channel",
"position":{
"coordinates":[
1.5156259423405036,
51.02298012911689
],
"type":"Point"
},
"polygon":{
"coordinates":[
[
[
1.2574472314030032,
51.10841865021388
],
[
1.6570749169498784,
50.883697733592925
],
[
1.7504587060123784,
50.93824925457923
],
[
1.3700570946842534,
51.1644289089335
],
[
1.2574472314030032,
51.10841865021388
]
]
],
"type":"Polygon"
}
}
Response:
{
"id": 1457917595059921
}