Geofences: create geofence from track

To create geofence from track, use the command resource/create_zone_by_track:

svc=resource/create_zone_by_track&params={"layerName":<text>,
				 "itemId":<uint>,
				 "unitId":<uint>,
				 "n":<text>,
				 "c":<int>,
				 "w":<int>}

Params

Name Description
layerName track layer name
itemId resource ID
unitId unit ID
n geofence name
c color (ARGB)
w line thickness

Response

{
	"all_zones":<uint>, 	/* number of new geofences (10 000 points in one) */
	"created_zone":<uint>	/* number of created geofences */
}
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2021 Gurtam