{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/traccar/json-schema/traccar-report-trips-schema.json",
  "title": "ReportTrips",
  "x-generated": "2026-11-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/traccar-openapi.yaml#/components/schemas/ReportTrips",
  "type": "object",
  "properties": {
    "deviceId": {
      "type": "integer",
      "format": "int64",
      "description": "Device identifier for the trip"
    },
    "deviceName": {
      "type": "string",
      "description": "Human readable device name"
    },
    "business": {
      "type": "boolean",
      "description": "Business attribute from the trip's starting position. False if absent."
    },
    "maxSpeed": {
      "type": "number",
      "description": "in knots"
    },
    "averageSpeed": {
      "type": "number",
      "description": "in knots"
    },
    "distance": {
      "type": "number",
      "description": "in meters"
    },
    "spentFuel": {
      "type": "number",
      "description": "in liters"
    },
    "duration": {
      "type": "integer",
      "description": "Trip duration in seconds"
    },
    "startTime": {
      "type": "string",
      "description": "in ISO 8601 format. eg. `1963-11-22T18:30:00Z`",
      "format": "date-time"
    },
    "startAddress": {
      "type": "string",
      "description": "Address where the trip started"
    },
    "startLat": {
      "type": "number",
      "description": "Starting latitude in decimal degrees"
    },
    "startLon": {
      "type": "number",
      "description": "Starting longitude in decimal degrees"
    },
    "endTime": {
      "type": "string",
      "description": "in ISO 8601 format. eg. `1963-11-22T18:30:00Z`",
      "format": "date-time"
    },
    "endAddress": {
      "type": "string",
      "description": "Address where the trip ended"
    },
    "endLat": {
      "type": "number",
      "description": "Ending latitude in decimal degrees"
    },
    "endLon": {
      "type": "number",
      "description": "Ending longitude in decimal degrees"
    },
    "driverUniqueId": {
      "type": "string",
      "description": "Unique identifier of the driver assigned to the trip"
    },
    "driverName": {
      "type": "string",
      "description": "Name of the driver assigned to the trip"
    }
  }
}