Filter protocol

Circle
Search function like this: list = S (dt, x, y, R), where dt - delta of time; Request: {	"description": "CircleFilter", "type": "object", { 		"auth_token":{"type":"string"}, "time_from":{"type":"string"}, "time_to":{"type":"string"}, "longitude":{"type":"number"}, "latitude":{"type":"number"}, "radius":{"type":"number"} } }

Rectangle
Search function like this: list = S (dt, dx, dy), where dt - delta of time; Request: {	"description": "RectangleFilter", "type": "object", { 		"auth_token":{"type":"string"}, "time_from":{"type":"string"}, "time_to":{"type":"string"}, "latitude_shift": {			"type":"object", {				"latitude1":{"type":"number"}, "latitude2":{"type":"number"}, }

},		"longitude_shift": {			"type":"object", {				"longitude1":{"type":"number"}, "longitude2":{"type":"number"}, }

} 	} }

Polygon
Search function like this: list = S (dt, list), where dt - delta of time; Request: {	"description": "PoligonFilter", "type": "object", { 		"auth_token":{"type":"string"}, "time_from":{"type":"string"}, "time_to":{"type":"string"}, "polygon": {			"type":"array", {				"number":{"type":"number"}, "latitude":{"type":"number"}, "longitude":{"type":"number"} }		} 	} }

Cylinder
Search function like this: list = S (dt, x, y, R, dh), where dt - delta of time, dh - delta of height; Request: {	"description": "CylinderFilter", "type": "object", { 		"auth_token":{"type":"string"}, "time_from":{"type":"string"}, "time_to":{"type":"string"}, "radius":{"type":"number"}, "longitude":{"type":"number"}, "latitude":{"type":"number"}, "altitude_shift": {			"type":"object", {				"altitude1":{"type":"number"}, "altitude2":{"type":"number"}, }		} 	} }

Box
Search function like this: list = S (dt, dx, dy, dz), where dt - delta of time, dh - delta of height; Request: {	"description": "Box", "type": "object", { 		"auth_token":{"type":"string"}, "time_from":{"type":"string"}, "time_to":{"type":"string"}, "latitude_shift": {			"type":"object", {				"latitude1":{"type":"number"}, "latitude2":{"type":"number"}, }

},		"longitude_shift": {			"type":"object", {				"longitude1":{"type":"number"}, "longitude2":{"type":"number"}, }

}		"altitude_shift": {			"type":"object", {				"altitude1":{"type":"number"}, "altitude2":{"type":"number"}, }		} 	} }

Fence
Search function like this: list = S (dt, list, dh), where dt - delta of time, dh - delta of height; Request: {	"description": "Fence", "type": "object", { 		"auth_token":{"type":"string"}, "time_from":{"type":"string"}, "time_to":{"type":"string"}, "polygon": {			"type":"array", {				"number":{"type":"number"}, "latitude":{"type":"number"}, "longitude":{"type":"number"} }		},		"altitude_shift": {			"type":"object", {				"altitude1":{"type":"number"}, "altitude2":{"type":"number"}, }		} 	} }

Common response for all requests
List of tags {	"description": "TagList", "type": "object", {	"errno":{"type":"number"}, "tags": {		"type": "array", "tag": {		   "title": {"type": "string"}, "link": {"type": "string"}, "channel": {"type": "string"}, "description": {"type": "string"}, "pubDate": {"type": "string"}, "user": {"type": "string"}, "latitude" : {"type": "number"}, "longitude" : {"type": "number"}, "altitude":{"type":"number"} }		}	} }