{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-location-service/json-schema/amazon-location-service-verify-device-position-request-schema.json",
  "title": "VerifyDevicePositionRequest",
  "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/VerifyDevicePositionRequest",
  "type": "object",
  "properties": {
    "TrackerName": {
      "type": "string",
      "description": "The name of the tracker resource to be associated with verification request."
    },
    "DeviceState": {
      "$ref": "#/$defs/DeviceState"
    },
    "DistanceUnit": {
      "type": "string",
      "description": "The distance unit for the verification request. Default Value: Kilometers"
    }
  },
  "required": [
    "TrackerName",
    "DeviceState"
  ],
  "$defs": {
    "CellSignals": {
      "type": "object",
      "properties": {
        "LteCellDetails": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LteCellDetails"
          },
          "description": "Information about the Long-Term Evolution (LTE) network the device is connected to."
        }
      },
      "required": [
        "LteCellDetails"
      ]
    },
    "DeviceState": {
      "type": "object",
      "properties": {
        "DeviceId": {
          "type": "string",
          "description": "The device identifier."
        },
        "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."
        },
        "Position": {
          "type": "array",
          "items": {
            "type": "number"
          },
          "description": "The last known device position."
        },
        "Accuracy": {
          "$ref": "#/$defs/PositionalAccuracy"
        },
        "Ipv4Address": {
          "type": "string",
          "description": "The device's Ipv4 address."
        },
        "WiFiAccessPoints": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/WiFiAccessPoint"
          },
          "description": "The Wi-Fi access points the device is using."
        },
        "CellSignals": {
          "$ref": "#/$defs/CellSignals"
        }
      },
      "required": [
        "DeviceId",
        "SampleTime",
        "Position"
      ]
    },
    "LteCellDetails": {
      "type": "object",
      "properties": {
        "CellId": {
          "type": "integer",
          "description": "The E-UTRAN Cell Identifier (ECI)."
        },
        "Mcc": {
          "type": "integer",
          "description": "The Mobile Country Code (MCC)."
        },
        "Mnc": {
          "type": "integer",
          "description": "The Mobile Network Code (MNC)"
        },
        "LocalId": {
          "$ref": "#/$defs/LteLocalId"
        },
        "NetworkMeasurements": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LteNetworkMeasurements"
          },
          "description": "The network measurements."
        },
        "TimingAdvance": {
          "type": "integer",
          "description": "Timing Advance (TA)."
        },
        "NrCapable": {
          "type": "boolean",
          "description": "Indicates whether the LTE object is capable of supporting NR (new radio)."
        },
        "Rsrp": {
          "type": "integer",
          "description": "Signal power of the reference signal received, measured in decibel-milliwatts (dBm)."
        },
        "Rsrq": {
          "type": "number",
          "description": "Signal quality of the reference Signal received, measured in decibels (dB)."
        },
        "Tac": {
          "type": "integer",
          "description": "LTE Tracking Area Code (TAC)."
        }
      },
      "required": [
        "CellId",
        "Mcc",
        "Mnc"
      ]
    },
    "LteLocalId": {
      "type": "object",
      "properties": {
        "Earfcn": {
          "type": "integer",
          "description": "E-UTRA (Evolved Universal Terrestrial Radio Access) absolute radio frequency channel number (EARFCN)."
        },
        "Pci": {
          "type": "integer",
          "description": "Physical Cell ID (PCI)."
        }
      },
      "required": [
        "Earfcn",
        "Pci"
      ]
    },
    "LteNetworkMeasurements": {
      "type": "object",
      "properties": {
        "Earfcn": {
          "type": "integer",
          "description": "E-UTRA (Evolved Universal Terrestrial Radio Access) absolute radio frequency channel number (EARFCN)."
        },
        "CellId": {
          "type": "integer",
          "description": "E-UTRAN Cell Identifier (ECI)."
        },
        "Pci": {
          "type": "integer",
          "description": "Physical Cell ID (PCI)."
        },
        "Rsrp": {
          "type": "integer",
          "description": "Signal power of the reference signal received, measured in dBm (decibel-milliwatts)."
        },
        "Rsrq": {
          "type": "number",
          "description": "Signal quality of the reference Signal received, measured in decibels (dB)."
        }
      },
      "required": [
        "Earfcn",
        "CellId",
        "Pci"
      ]
    },
    "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"
      ]
    },
    "WiFiAccessPoint": {
      "type": "object",
      "properties": {
        "MacAddress": {
          "type": "string",
          "description": "Medium access control address (Mac)."
        },
        "Rss": {
          "type": "integer",
          "description": "Received signal strength (dBm) of the WLAN measurement data."
        }
      },
      "required": [
        "MacAddress",
        "Rss"
      ]
    }
  }
}