{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-location-service/json-schema/amazon-location-service-get-device-position-response-schema.json",
  "title": "GetDevicePositionResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-location-service-positions-api-openapi.yml#/components/schemas/GetDevicePositionResponse",
  "type": "object",
  "properties": {
    "DeviceId": {
      "type": "string",
      "description": "The device whose position you retrieved."
    },
    "SampleTime": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp at which the device's position was determined. Uses ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ."
    },
    "ReceivedTime": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp for when the tracker resource received the device position. Uses ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ."
    },
    "Position": {
      "type": "array",
      "items": {
        "type": "number"
      },
      "description": "The last known device position."
    },
    "Accuracy": {
      "$ref": "#/$defs/PositionalAccuracy"
    },
    "PositionProperties": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The properties associated with the position."
    }
  },
  "required": [
    "SampleTime",
    "ReceivedTime",
    "Position"
  ],
  "$defs": {
    "PositionalAccuracy": {
      "type": "object",
      "properties": {
        "Horizontal": {
          "type": "number",
          "description": "Estimated maximum distance, in meters, between the measured position and the true position of a device, along the Earth's surface."
        }
      },
      "required": [
        "Horizontal"
      ]
    }
  }
}