# rehab.syndrome.trailactivity

> Published by [geesawra.industries](https://lexicon.garden/identity/did:plc:6ll5xi67lyuyovt6fiv4fnjo)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:6ll5xi67lyuyovt6fiv4fnjo/rehab.syndrome.trailactivity)
- [Documentation](https://lexicon.garden/lexicon/did:plc:6ll5xi67lyuyovt6fiv4fnjo/rehab.syndrome.trailactivity/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:6ll5xi67lyuyovt6fiv4fnjo/rehab.syndrome.trailactivity/examples)

## Definitions

### `rehab.syndrome.trailactivity`

**Type**: `record`

One private GPS activity. Distance, duration, and elevation are derived by the app from the uploaded route file.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `description` | `string` | No |  |
| `distanceMeters` | `integer` | Yes |  |
| `durationSeconds` | `integer` | Yes |  |
| `elevationGainMeters` | `integer` | Yes |  |
| `route` | `blob` | Yes |  |
| `routeFormat` | `string` | Yes |  |
| `sport` | `string` | Yes |  |
| `startedAt` | `string` (datetime) | Yes |  |
| `title` | `string` | Yes |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "One private GPS activity. Distance, duration, and elevation are derived by the app from the uploaded route file.",
      "key": "tid",
      "record": {
        "properties": {
          "description": {
            "maxGraphemes": 500,
            "maxLength": 2000,
            "type": "string"
          },
          "distanceMeters": {
            "maximum": 100000000,
            "minimum": 0,
            "type": "integer"
          },
          "durationSeconds": {
            "maximum": 315360000,
            "minimum": 0,
            "type": "integer"
          },
          "elevationGainMeters": {
            "maximum": 1000000,
            "minimum": 0,
            "type": "integer"
          },
          "route": {
            "accept": [
              "application/gpx+xml",
              "application/vnd.garmin.tcx+xml",
              "application/vnd.ant.fit"
            ],
            "maxSize": 2097152,
            "type": "blob"
          },
          "routeFormat": {
            "knownValues": [
              "gpx",
              "tcx",
              "fit"
            ],
            "maxLength": 8,
            "type": "string"
          },
          "sport": {
            "knownValues": [
              "run",
              "ride",
              "hike",
              "walk",
              "swim",
              "workout",
              "other"
            ],
            "maxLength": 16,
            "type": "string"
          },
          "startedAt": {
            "format": "datetime",
            "type": "string"
          },
          "title": {
            "maxGraphemes": 120,
            "maxLength": 480,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "title",
          "sport",
          "startedAt",
          "durationSeconds",
          "distanceMeters",
          "elevationGainMeters",
          "route",
          "routeFormat"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "rehab.syndrome.trailactivity",
  "lexicon": 1
}
```
