# app.kalangitan.location.visibility

> 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.visibility)
- [Documentation](https://lexicon.garden/lexicon/did:plc:2aalhpujw6kqsvraztyqlngu/app.kalangitan.location.visibility/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:2aalhpujw6kqsvraztyqlngu/app.kalangitan.location.visibility/examples)

## Definitions

### `app.kalangitan.location.visibility`

**Type**: `record`

Per-persona location defaults: whether location is shared at all (mode) and at what granularity (precision). These defaults keep posting low-friction. Location behavior is configured once per persona, not per post. 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.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `mode` | `string` | Yes | off: no location shared. snapshot: discrete 'was here' records allowed. live: continuously-updated app.kalangitan.location.live record maintained. |
| `precision` | `string` | Yes | Granularity applied to all location data for this persona: exact point, ~1km neighborhood-level, or city-level. |
| `profileUri` | `string` (at-uri) | Yes | AT-URI of the app.kalangitan.actor.profile record these defaults apply to. |
| `updatedAt` | `string` (datetime) | Yes |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Per-persona location defaults: whether location is shared at all (mode) and at what granularity (precision). These defaults keep posting low-friction. Location behavior is configured once per persona, not per post. 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.",
      "key": "tid",
      "record": {
        "properties": {
          "mode": {
            "description": "off: no location shared. snapshot: discrete 'was here' records allowed. live: continuously-updated app.kalangitan.location.live record maintained.",
            "knownValues": [
              "off",
              "snapshot",
              "live"
            ],
            "type": "string"
          },
          "precision": {
            "description": "Granularity applied to all location data for this persona: exact point, ~1km neighborhood-level, or city-level.",
            "knownValues": [
              "exact",
              "neighborhood",
              "city"
            ],
            "type": "string"
          },
          "profileUri": {
            "description": "AT-URI of the app.kalangitan.actor.profile record these defaults apply to.",
            "format": "at-uri",
            "type": "string"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "profileUri",
          "mode",
          "precision",
          "updatedAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "app.kalangitan.location.visibility",
  "lexicon": 1
}
```
