{ "$schema": "http://json-schema.org/schema#", "$schemaVersion": "0.0.2", "modelTags": "GreenMov", "$id": "https://smart-data-models.github.io/dataModel.Environment/TrafficEnvironmentImpact/schema.json", "title": "Smart Data Models - Traffic Environment Impact", "description": "Environmental Impact of traffic based on the vehicles traffic and their emission characteristics", "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": [ "TrafficEnvironmentImpact" ], "description": "Property. NGSI type. It has to be TrafficEnvironmentImpact" }, "co2": { "type": "number", "description": "Property. The measured C02 emission concentration. Units:'mg/L'" }, "dateObservedFrom": { "type": "string", "format": "date-time", "description": "Property. Date of the start of measurement (timestamp) in ISO 8601" }, "dateObservedTo": { "type": "string", "format": "date-time", "description": "Property. Date of the end of measurement (timestamp) in ISO 8601" }, "traffic": { "type": "array", "description": "Property. Array of objects containing the different types of vehicles and its relations with the object of the traffic flow observations", "items": { "type": "object", "properties": { "vehicleClass": { "type": "string", "description": "Property. Enumeration of the vehicle classes" }, "refTrafficFlowObserved": { "anyOf": [ { "type": "string", "minLength": 1, "maxLength": 256, "pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$", "description": "Property. Identifier format of any NGSI entity" }, { "type": "string", "format": "uri", "description": "Property. Identifier format of any NGSI entity" } ], "description": "Relationship. Unique identifier of the entity TrafficObserved with the averageVehicleSpeed, averageOccupancy and intensity" } } } } } } ], "required": [ "id", "type" ] }