{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/traccar/json-schema/traccar-position-schema.json",
  "title": "Position",
  "x-generated": "2026-11-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/traccar-openapi.yaml#/components/schemas/Position",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int64",
      "description": "Unique position record identifier"
    },
    "deviceId": {
      "type": "integer",
      "format": "int64",
      "description": "Identifier of the device that reported this position"
    },
    "protocol": {
      "type": "string",
      "description": "Device protocol name that produced the message"
    },
    "deviceTime": {
      "type": "string",
      "description": "in ISO 8601 format. eg. `1963-11-22T18:30:00Z`",
      "format": "date-time"
    },
    "fixTime": {
      "type": "string",
      "description": "in ISO 8601 format. eg. `1963-11-22T18:30:00Z`",
      "format": "date-time"
    },
    "serverTime": {
      "type": "string",
      "description": "in ISO 8601 format. eg. `1963-11-22T18:30:00Z`",
      "format": "date-time"
    },
    "valid": {
      "type": "boolean",
      "description": "Indicates whether the position was marked as valid by the device"
    },
    "latitude": {
      "type": "number",
      "description": "Latitude in decimal degrees"
    },
    "longitude": {
      "type": "number",
      "description": "Longitude in decimal degrees"
    },
    "altitude": {
      "type": "number",
      "description": "Altitude above sea level in meters"
    },
    "speed": {
      "type": "number",
      "description": "in knots"
    },
    "course": {
      "type": "number",
      "description": "Heading in degrees (0-360) where 0 is true north"
    },
    "address": {
      "type": "string",
      "description": "Resolved reverse-geocoded address if available"
    },
    "accuracy": {
      "type": "number",
      "description": "Estimated positional accuracy in meters when provided"
    },
    "network": {
      "type": "object",
      "description": "Network metadata (e.g. cell or Wi‑Fi data) supplied by the device",
      "properties": {}
    },
    "geofenceIds": {
      "type": "array",
      "items": {
        "type": "integer"
      },
      "description": "List of geofence ids applicable to this position"
    },
    "attributes": {
      "type": "object",
      "description": "Custom key-value attributes sent by the device or enrichments",
      "properties": {}
    }
  }
}