# at.mapped.post

> Published by [mapped.at](https://lexicon.garden/identity/did:plc:l5m5nuh5cvdatyn5fjxar2sh)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:l5m5nuh5cvdatyn5fjxar2sh/at.mapped.post)
- [Documentation](https://lexicon.garden/lexicon/did:plc:l5m5nuh5cvdatyn5fjxar2sh/at.mapped.post/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:l5m5nuh5cvdatyn5fjxar2sh/at.mapped.post/examples)

## Definitions

### `at.mapped.post`

**Type**: `record`

A post representing either an activity or a travel experience

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `text` | `string` | No | Caption or description text for the post |
| `title` | `string` | No | Optional title for the post (especially useful for travel posts) |
| `trail` | `ref` → `com.atproto.repo.strongRef` | No | Reference to a trail record with route geometry |
| `basePost` | `ref` → `com.atproto.repo.strongRef` | No | Reference to another post that this post is based on (e.g. a travel post based on an activity post) |
| `location` | `ref` → `com.atproto.repo.strongRef` | No | Reference to a location record |
| `timestamp` | `string` (datetime) | Yes | When the post was created |
| `activityType` | `ref` → `com.atproto.repo.strongRef` | No | Reference to an activityType record. If present, this is an activity post; if absent, it's a travel post |

## Raw Schema

```json
{
  "id": "at.mapped.post",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "timestamp"
        ],
        "properties": {
          "text": {
            "type": "string",
            "maxLength": 500,
            "description": "Caption or description text for the post"
          },
          "title": {
            "type": "string",
            "maxLength": 100,
            "description": "Optional title for the post (especially useful for travel posts)"
          },
          "trail": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref",
            "description": "Reference to a trail record with route geometry"
          },
          "basePost": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref",
            "description": "Reference to another post that this post is based on (e.g. a travel post based on an activity post)"
          },
          "location": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref",
            "description": "Reference to a location record"
          },
          "timestamp": {
            "type": "string",
            "format": "datetime",
            "description": "When the post was created"
          },
          "activityType": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref",
            "description": "Reference to an activityType record. If present, this is an activity post; if absent, it's a travel post"
          }
        }
      },
      "description": "A post representing either an activity or a travel experience"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
