{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gsma/json-schema/gsma-location-schema.json",
  "title": "Location",
  "description": "Device location",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gsma-location-retrieval-api-openapi.yml#/components/schemas/Location",
  "type": "object",
  "required": [
    "lastLocationTime",
    "area"
  ],
  "properties": {
    "lastLocationTime": {
      "$ref": "#/$defs/LastLocationTime"
    },
    "area": {
      "$ref": "#/$defs/Area"
    },
    "device": {
      "$ref": "#/$defs/DeviceResponse"
    }
  },
  "$defs": {
    "Area": {
      "$ref": "../common/CAMARA_common.yaml#/components/schemas/Area"
    },
    "DeviceResponse": {
      "$ref": "../common/CAMARA_common.yaml#/components/schemas/DeviceResponse"
    },
    "LastLocationTime": {
      "description": "Last date and time when the device was localized. It must follow [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) and must have time zone.",
      "type": "string",
      "format": "date-time",
      "maxLength": 64
    }
  }
}