# rehab.syndrome.trailactivity

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

- Kind: record
- Record key: tid
- Authority: syndrome.rehab
- Lexicon: 1
- Published by [geesawra.industries](https://lexicon.garden/identity/did:plc:6ll5xi67lyuyovt6fiv4fnjo), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:6ll5xi67lyuyovt6fiv4fnjo/rehab.syndrome.trailactivity)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:6ll5xi67lyuyovt6fiv4fnjo/rehab.syndrome.trailactivity/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:6ll5xi67lyuyovt6fiv4fnjo/rehab.syndrome.trailactivity/analytics)

## Record (`rehab.syndrome.trailactivity`)

Type: record · key tid

### Properties

- `description` (string)
  - Constraints: maxLength: 2000, maxGraphemes: 500
- `distanceMeters` (integer, required)
  - Constraints: minimum: 0, maximum: 100000000
- `durationSeconds` (integer, required)
  - Constraints: minimum: 0, maximum: 315360000
- `elevationGainMeters` (integer, required)
  - Constraints: minimum: 0, maximum: 1000000
- `route` (blob, required)
  - Constraints: maxSize: 2097152, accept: application/gpx+xml, application/vnd.garmin.tcx+xml, application/vnd.ant.fit
- `routeFormat` (string, required)
  - Constraints: maxLength: 8, knownValues: gpx | tcx | fit
- `sport` (string, required)
  - Constraints: maxLength: 16, knownValues: run | ride | hike | walk | swim | workout | other
- `startedAt` (string · datetime, required)
- `title` (string, required)
  - Constraints: minLength: 1, maxLength: 480, maxGraphemes: 120

## 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
}
```
