To create, copy, edit or delete POIs, use the command resource/update_poi:
svc=resource/update_poi¶ms={"itemId":<long>, "id":<long>, "callMode":<text>, "n":<text>, "d":<text>, "y":<double>, "x":<double>, "r":<uint>, "f":<uint>, "c":<uint>, "tc":<uint>, "ts":<uint>, "min":<uint>, "max":<uint>, "path":<text>, "libId":<text>, "oldItemId":<long>, "oldPoiId":<uint> }
You can find an example of this request in the sample Resource.
Name | Description |
---|---|
itemId | resource ID |
id | POI ID |
callMode | action: create, update, delete |
oldItemId | resource id from where POI is to be copied |
oldPoiId | POI id which is to be copied |
To copy (and also edit) POI please use
oldItemId
and oldPoiId
options in order to state desired POI.
Other parameters are required only for creating and updating, you can see them in the chapter POIs: detailed information.
On create and edit:
[ <long>, /* POI's ID */ { "id":<long>, /* POI ID */ "n":<text>, /* name */ "y":<double>, /* latitude */ "x":<double>, /* longitude */ "t":<double>, /* aspect ratio of the image */ "i":<ushort>, /* check sum of image (CRC16) */ "r":<uint>, /* radius, m */ "path":<text>, /* short path to default icon */ "libId":<uint>, /* id of icon library , 0 - id for default icon library */ "ct":<uint>, /* creation time */ "mt":<uint> /* last modification time */ } ]
On delete:
[ <long>, /* POI ID */ null ]
|