# at.mapped.trail

> 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.trail)
- [Documentation](https://lexicon.garden/lexicon/did:plc:l5m5nuh5cvdatyn5fjxar2sh/at.mapped.trail/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:l5m5nuh5cvdatyn5fjxar2sh/at.mapped.trail/examples)

## Definitions

### `at.mapped.trail`

**Type**: `record`

A trail

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `name` | `string` | Yes | Display name of the trail or route |
| `polyline` | `string` | No | Encoded Polyline representing the trail geometry |
| `locations` | `array` | No | Optional array of location references along the trail |
| `activityType` | `ref` → `com.atproto.repo.strongRef` | No | Reference to an activityType record |

## Raw Schema

```json
{
  "id": "at.mapped.trail",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "name"
        ],
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 50,
            "description": "Display name of the trail or route"
          },
          "polyline": {
            "type": "string",
            "maxLength": 1000,
            "description": "Encoded Polyline representing the trail geometry"
          },
          "locations": {
            "type": "array",
            "items": {
              "ref": "at.mapped.location",
              "type": "ref"
            },
            "description": "Optional array of location references along the trail"
          },
          "activityType": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref",
            "description": "Reference to an activityType record"
          }
        }
      },
      "description": "A trail"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
