{
	"$schema": "https://json-schema.org/draft/2020-12/schema",
	"$id": "http://www.itu.int/schema/tollgate-list",
	"description": "The structure definition of the tollgate list",

	"type": "array",
	"items": {
		"$ref": "#/$defs/tollgate"
	},
	"$defs": {
		"tollgate": {
			"type": "object",
			"description": "tollgate, equipped with points for video image information acquisition and identification device for moving vehicles, pedestrians, etc.",
			"properties": {
				"TollgateID": {
					"description": "Tollgate ID",
					"$ref": "/schema/components#/$defs/deviceID"
				},
				"Name": {
					"description": "Tollgate name",
					"maxLength": 100,
					"type": "string"
				},
				"Longtitude": {
					"$ref": "/schema/ape-list#/$defs/ape/properties/Longtitude"
				},
				"Latitude": {
					"$ref": "/schema/ape-list#/$defs/ape/properties/Latitude"
				},
				"PlaceCode": {
					"description": "Installation location area code",
					"type": "string"
				},
				"Place": {
					"description": "Description of the specific installation location of the tollgate",
					"type": "string"
				},
				"Status": {
					"description": "Tollgate status",
					"$ref": "/schema/components#/$defs/statusType"
				},
				"TollgateUsage": {
					"description": "Use of tollgate, 80: security tollgate; 81: traffic tollgate; 82: other",
					"enum": [ "80", "81", "82" ]
				},
				"LaneNum": {
					"description": "Number of tollgate lanes",
					"type": "integer"
				},
				"ActiveTime": {
					"description": "Tollgate activation time",
					"type": "string",
					"format": "dateTime"
				}
			},
			"required": [ "TollgateID", "Name", "Longtitude", "Latitude", "PlaceCode", "Status", "TollgateCat", "TollgateUsage" ]
		}
	}
}
