{ "$schema": "http://json-schema.org/schema#", "$schemaVersion": "0.0.1", "modelTags": "OCF", "$id": "https://smart-data-models.github.io/dataModel.OCF/Geolocation/schema.json", "title": "Smart Data models - Geolocation schema derived from the open connectivity foundation repository https://github.com/openconnectivityfoundation/IoTDataModels", "description": "This Resource describes the properties associated with the current geolocation coordinate.Geolocation is a geolocation coordinate data.The Property 'latitude' is a device's current Latitude coordinate (degrees).The Property 'longitude' is a device's current Longitude coordinate (degrees).The Property 'alt' is a device's current distance (metres) above or below 'local' sea-level.The Property 'accuracy' is the accuracy level of the latitude and longitude coordinates (metres).The Property 'altitudeAccuracy' is the accuracy level of the altitude coordinates (metres).The Property 'heading' is a direction of travel of device (degree).The Property 'speed' is a device's current velocity (metres per second).", "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": { "rt": { "description": "Property. The Resource Type", "items": { "enum": [ "oic.r.sensor.geolocation" ], "maxLength": 64, "type": "string" }, "minItems": 1, "uniqueItems": true, "readOnly": true, "type": "array" }, "longitude": { "description": "Property. The Device's Current Longitude coordinate (degrees)", "readOnly": true, "type": "number" }, "heading": { "description": "Property. The direction of travel of the Device (degree)", "maximum": 360, "minimum": 0, "readOnly": true, "type": "number" }, "latitude": { "description": "Property. The Device's Current Latitude coordinate (degrees)", "readOnly": true, "type": "number" }, "altitudeAccuracy": { "description": "Property. The accuracy level of the altitude coordinates (metres)", "minimum": 0, "readOnly": true, "type": "number" }, "alt": { "description": "Property. The current distance (metres) above or below 'local' sea-level", "readOnly": true, "type": "number" }, "accuracy": { "description": "Property. The accuracy level of the latitude and longitude coordinates (metres)", "minimum": 0, "readOnly": true, "type": "number" }, "speed": { "description": "Property. The Device's current velocity (metres per second)", "minimum": 0, "readOnly": true, "type": "number" }, "n": { "type": "string", "maxLength": 64, "readOnly": true, "description": "Property. Friendly name of the Resource" }, "if": { "description": "Property. The OCF Interface set supported by this Resource", "items": { "enum": [ "oic.if.s", "oic.if.baseline" ], "type": "string" }, "minItems": 2, "uniqueItems": true, "readOnly": true, "type": "array" }, "type": { "type": "string", "enum": [ "Geolocation" ], "description": "Property. NGSI entity type. It has to be Geolocation" } } } ], "license": "https://github.com/openconnectivityfoundation/core/blob/e28a9e0a92e17042ba3e83661e4c0fbce8bdc4ba/LICENSE.md", "derivedFrom": "https://raw.githubusercontent.com/openconnectivityfoundation/IoTDataModels/master/GeolocationResURI.swagger.json", "required": [ "latitude", "longitude", "alt", "id", "type" ] }