{
  "id": "fleet.positions.current.v4",
  "version": "4.0.0",
  "ontologyRevision": "ontology.map.moving_object.v3",
  "deliveryMode": "snapshot+patch",
  "semanticTypes": [
    "map.moving_object"
  ],
  "fields": [
    "course_degrees",
    "display_name",
    "elevation_meters",
    "geometry",
    "hdop",
    "horizontal_accuracy_meters",
    "movement_state",
    "object_kind",
    "position_source",
    "satellite_count",
    "signal_state",
    "speed_kph"
  ],
  "fieldContracts": {
    "course_degrees": {
      "type": "number",
      "required": false,
      "minimum": 0,
      "maximum": 360
    },
    "display_name": {
      "type": "string",
      "required": true
    },
    "elevation_meters": {
      "type": "number",
      "required": false
    },
    "geometry": {
      "type": "point",
      "required": false
    },
    "hdop": {
      "type": "number",
      "required": false,
      "minimum": 0
    },
    "horizontal_accuracy_meters": {
      "type": "number",
      "required": false,
      "minimum": 0
    },
    "movement_state": {
      "type": "string",
      "required": true,
      "enum": [
        "moving",
        "stopped"
      ]
    },
    "object_kind": {
      "type": "string",
      "required": true
    },
    "position_source": {
      "type": "string",
      "required": true
    },
    "satellite_count": {
      "type": "number",
      "required": false,
      "minimum": 0
    },
    "signal_state": {
      "type": "string",
      "required": true,
      "enum": [
        "active",
        "inactive"
      ]
    },
    "speed_kph": {
      "type": "number",
      "required": false,
      "minimum": 0
    }
  },
  "history": {
    "mode": "sampled",
    "intervalMs": 60000,
    "strategy": "latest-per-entity-per-bucket",
    "retentionDays": 90
  }
}
