# app.kalangitan.location.live

> Published by [iamtheno.name](https://lexicon.garden/identity/did:plc:2aalhpujw6kqsvraztyqlngu)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:2aalhpujw6kqsvraztyqlngu/app.kalangitan.location.live)
- [Documentation](https://lexicon.garden/lexicon/did:plc:2aalhpujw6kqsvraztyqlngu/app.kalangitan.location.live/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:2aalhpujw6kqsvraztyqlngu/app.kalangitan.location.live/examples)

## Definitions

### `app.kalangitan.location.live`

**Type**: `record`

Live location: a single continuously-overwritten record, NOT a growing collection. Belongs to a persona via profileUri; near-real-time updates are feasible because Spaces support direct PDS-to-PDS sync without a relay, so this record never bloats the repo. Only written when the owning persona's location.visibility mode is 'live'. CONVENTION: this record's repo key (rkey) MUST match the rkey of the app.kalangitan.actor.profile record named in profileUri, so the two records pair up deterministically. One live record per persona.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `label` | `string` | No |  |
| `latitude` | `integer` | Yes | Latitude in E7 microdegrees (degrees x 10^7). |
| `longitude` | `integer` | Yes | Longitude in E7 microdegrees (degrees x 10^7). |
| `precision` | `string` | Yes | Coordinates must be coarsened to the persona's configured precision before writing. |
| `profileUri` | `string` (at-uri) | Yes | AT-URI of the app.kalangitan.actor.profile record this live location belongs to. |
| `updatedAt` | `string` (datetime) | Yes | When this position was captured. Written on every update. |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Live location: a single continuously-overwritten record, NOT a growing collection. Belongs to a persona via profileUri; near-real-time updates are feasible because Spaces support direct PDS-to-PDS sync without a relay, so this record never bloats the repo. Only written when the owning persona's location.visibility mode is 'live'. CONVENTION: this record's repo key (rkey) MUST match the rkey of the app.kalangitan.actor.profile record named in profileUri, so the two records pair up deterministically. One live record per persona.",
      "key": "tid",
      "record": {
        "properties": {
          "label": {
            "maxGraphemes": 256,
            "maxLength": 256,
            "type": "string"
          },
          "latitude": {
            "description": "Latitude in E7 microdegrees (degrees x 10^7).",
            "maximum": 900000000,
            "minimum": -900000000,
            "type": "integer"
          },
          "longitude": {
            "description": "Longitude in E7 microdegrees (degrees x 10^7).",
            "maximum": 1800000000,
            "minimum": -1800000000,
            "type": "integer"
          },
          "precision": {
            "description": "Coordinates must be coarsened to the persona's configured precision before writing.",
            "knownValues": [
              "exact",
              "neighborhood",
              "city"
            ],
            "type": "string"
          },
          "profileUri": {
            "description": "AT-URI of the app.kalangitan.actor.profile record this live location belongs to.",
            "format": "at-uri",
            "type": "string"
          },
          "updatedAt": {
            "description": "When this position was captured. Written on every update.",
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "profileUri",
          "latitude",
          "longitude",
          "precision",
          "updatedAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "app.kalangitan.location.live",
  "lexicon": 1
}
```
