Geofences: presence in geofences:

To find out if current point presents in certain geofences use the command resource/get_zones_by_point:

svc=resource/get_zones_by_point&params={"spec": {
						"zoneId":{
							"<long>":[<long>],
							...
						},
						"lat":<double>,
						"lon":<double>
					}}

Parameters

Name Description
zoneId list of geofences descriptions:
format: {resId1: [], resId2: [zId1, zId2, …], …}
resN – resource ID,
zIdN – geofence ID
:!: If array of geofences IDs is empty it means that all geofences will be taken
lat latitude
lon longitude

Response

{
	<text>:[<uint>],	/* resource ID: list of geofences IDs*/
	...
}