Import of geofences

To import geofences, use the command exchange/import_zones_save:

svc=exchange/import_zones_save&params={"itemId":<long>,
				       "zones":[{
						"n":<text>,
						"d":<text>,
						"id":<long>,
						"t":<byte>,
						"w":<uint>,
						"f":<uint>,
						"c":<uint>,
						"b":{
							"min_x":<double>,
							"min_y":<double>,
							"max_x":<double>,
							"max_y":<double>,
							"cen_x":<double>,
							"cen_y":<double>
						},
						"p":[{
							"x":<double>,
							"y":<double>,
							"r":<uint>
						}]
					}]}

:!: Current request can't be executed simultaneously with any request from this chapter and following requests:

Parameters

Name Description
itemId resource ID
id geofence ID
zones array of geofences IDs

The description of other parameters can be found in the chapter Geofences: detailed information.

Response

<int>		/* number of imported geofences */
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2020 Gurtam