{ "$schema": "http://json-schema.org/schema#", "$id": "https://smart-data-models.github.io/dataModel.Transportation/RestrictedTrafficArea/schema.json", "title": "Smart Data Models - Transportation / RestrictedTrafficArea", "description": "An area of a city in which the traffic generated by cars or any other kind of vehicles is subjected to limitation.", "type": "object", "allOf": [ { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons" }, { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons" }, { "properties": { "type": { "type": "string", "enum": [ "RestrictedTrafficArea" ], "description": "Property. NGSI Entity type. It has to be RestrictedTrafficArea" }, "category": { "type": "array", "description": "Property. Restricted traffic area's category(ies). The purpose of this field is to allow to tag, generally speaking, restricted traffic area entities. Particularities and detailed descriptions should be found under the corresponding specific attributes.", "items": { "type": "string", "enum": [ "barrierAccess", "forBikes", "forCustomers", "forDisabled", "forElectricalVehicles", "forEmployees", "forMembers", "forPedestrian", "forVisitors", "forResidents", "forStudents", "gateAccess", "guarded", "onlyElectricalVehicles", "onlyPedestrian", "onlyResident", "onlyResidents", "onlyWithPermit", "private", "public", "publicPrivate" ] }, "minItems": 1, "uniqueItems": true }, "notAllowedVehicleType": { "type": "array", "description": "Property. Vehicle type(s) not allowed to cross the restricted traffic area.", "items": { "type": "string", "enum": [ "anyVehicle", "agriculturalVehicle", "bicycle", "bus", "car", "caravan", "carWithCaravan", "carWithTrailer", "constructionOrMaintenanceVehicle", "dieselCarEuro0", "dieselCarEuro1", "dieselCarEuro2", "dieselCarEuro3", "dieselCarEuro4", "dieselCarEuro5a", "dieselCarEuro5b", "dieselCarEuro6", "freightTransportVehicle", "lorry", "moped", "motorcycle", "motorcycleWithSideCar", "motorscooter", "petrolCarEuro0", "petrolCarEuro1", "petrolCarEuro2", "petrolCarEuro3", "petrolCarEuro4", "petrolCarEuro5", "petrolCarEuro6", "tanker", "trailer", "van" ] }, "minItems": 1, "uniqueItems": true }, "specialRestrictions": { "type": "array", "description": "Relationship. Individual vehicle type not allowed to cross the restricted traffic area in a specific time slot.", "items": { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/EntityIdentifierType" } }, "restrictionExceptions": { "type": "array", "description": "Relationship. Individual vehicle type allowed to cross the restricted traffic area in a specific time slot.", "items": { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/EntityIdentifierType" } }, "restrictionValidityHours": { "type": "string", "description": "Property. Days of the week and hours in which the traffic restriction is active." }, "regulation": { "type": "string", "description": "Property. A URL pointing to the regulation for the specific restricted traffic area.", "format": "uri" }, "validityStartDate": { "type": "string", "format": "date-time", "description": "Property. The date from which the restriction is applied." }, "validityEndDate": { "type": "string", "format": "date-time", "description": "Property. The date at which the restriction is dismissed." }, "security": { "type": "array", "description": "Property. Security aspects provided by this restricted traffic area.", "items": { "type": "string", "enum": [ "bollard", "camera", "cctv", "dog", "externalSecurity", "fencesareaSeperatedFromSurroundings", "floodLight", "guard24hours", "lighting", "patrolled", "securityStaff" ] }, "minItems": 1, "uniqueItems": true } } } ], "required": [ "id", "type" ], "$schemaVersion": "0.0.1" }