POIs: create, edit, delete





This method is deprecated. POI were icorporated into Geofences 29.02.2016 (see. resource/update_zone )

To create, copy, edit or delete POIs, use the command resource/update_poi:

svc=resource/update_poi&params={"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":<uint>,
				"oldPoiId":<uint>
}

:!: You can find an example of this request in the sample Resource.

Parameters

Name Description
itemId resource ID
id POI ID
callMode action: create, update, delete ,reset_image
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.

Response

On create and edit:

[
	<long>,		/* POI's ID */
	{
		"id":<long>,	/* POI ID */
		"n":<text>,	/* name */
		"y":<double>,	/* latitude */
		"x":<double>,	/* longitude */
		"r":<uint>,	/* radius, m */
		"t":<double>,	/* aspect ratio of the image */
		"i":<ushort>,	/* check sum of image (CRC16) */		
		"libId":<uint>,	/* id of icon library , 0 - id for default icon library */
		"path":<text>,	/* short path to default icon */
		"ct":<uint>,    /* creation time */  
		"mt":<uint>     /* last modification time */
	}
]

On delete:

[
	<long>,		/* POI ID */
	null
]
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2024 Gurtam