# com.hikeratlas.temp.track

> A GPX trace of one outing, a day hike or a whole multi-day trip, on Hiker Atlas (https://www.hikeratlas.com). In beta: may change.

- Kind: record
- Record key: tid
- Authority: temp.hikeratlas.com
- Lexicon: 1
- Published by [hikeratlas.com](https://lexicon.garden/identity/did:plc:7onixtzlmdjijmp7ympxedte), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:7onixtzlmdjijmp7ympxedte/com.hikeratlas.temp.track)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:7onixtzlmdjijmp7ympxedte/com.hikeratlas.temp.track/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:7onixtzlmdjijmp7ympxedte/com.hikeratlas.temp.track/analytics)

## Record (`com.hikeratlas.temp.track`)

Type: record · key tid

### Properties

- `createdAt` (string · datetime, required)
- `distance` (integer): Metres.
  - Constraints: minimum: 0
- `duration` (integer): Seconds, from the first point to the last (for a multi-day trip, including nights).
  - Constraints: minimum: 0
- `gain` (integer): Metres climbed.
  - Constraints: minimum: 0
- `gpx` (blob, required): One GPX file for the whole outing, as is or compressed (the blob's mimeType says which; writers should prefer gzip). A multi-day trip recorded in several files is packaged into one, a <trk> per file, in time order.
  - Constraints: maxSize: 10000000, accept: application/gpx+xml, application/gzip, application/zstd
- `license` (string): The licence of this record and its photos: CC0-1.0, CC-BY-4.0 or hikeratlas-only.
  - Constraints: knownValues: CC0-1.0 | CC-BY-4.0 | hikeratlas-only
- `photos` (array)
  - Constraints: maxLength: 50
  - `items` (ref)
    - Reference: `com.hikeratlas.temp.defs#photo`
- `routeKey` (ref): The curated route they set out to hike, as they chose it. The trace may differ from it (side trips, a different start, turning back).
  - Reference: `com.hikeratlas.temp.defs#routeKey`
- `startedAt` (string · datetime)
- `steps` (integer): Steps taken during the outing, as counted by the recording device’s step counter.
  - Constraints: minimum: 0
- `title` (string)
  - Constraints: maxGraphemes: 200

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "distance": {
            "description": "Metres.",
            "minimum": 0,
            "type": "integer"
          },
          "duration": {
            "description": "Seconds, from the first point to the last (for a multi-day trip, including nights).",
            "minimum": 0,
            "type": "integer"
          },
          "gain": {
            "description": "Metres climbed.",
            "minimum": 0,
            "type": "integer"
          },
          "gpx": {
            "accept": [
              "application/gpx+xml",
              "application/gzip",
              "application/zstd"
            ],
            "description": "One GPX file for the whole outing, as is or compressed (the blob's mimeType says which; writers should prefer gzip). A multi-day trip recorded in several files is packaged into one, a <trk> per file, in time order.",
            "maxSize": 10000000,
            "type": "blob"
          },
          "license": {
            "description": "The licence of this record and its photos: CC0-1.0, CC-BY-4.0 or hikeratlas-only.",
            "knownValues": [
              "CC0-1.0",
              "CC-BY-4.0",
              "hikeratlas-only"
            ],
            "type": "string"
          },
          "photos": {
            "items": {
              "ref": "com.hikeratlas.temp.defs#photo",
              "type": "ref"
            },
            "maxLength": 50,
            "type": "array"
          },
          "routeKey": {
            "description": "The curated route they set out to hike, as they chose it. The trace may differ from it (side trips, a different start, turning back).",
            "ref": "com.hikeratlas.temp.defs#routeKey",
            "type": "ref"
          },
          "startedAt": {
            "format": "datetime",
            "type": "string"
          },
          "steps": {
            "description": "Steps taken during the outing, as counted by the recording device’s step counter.",
            "minimum": 0,
            "type": "integer"
          },
          "title": {
            "maxGraphemes": 200,
            "type": "string"
          }
        },
        "required": [
          "gpx",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "A GPX trace of one outing, a day hike or a whole multi-day trip, on Hiker Atlas (https://www.hikeratlas.com). In beta: may change.",
  "id": "com.hikeratlas.temp.track",
  "lexicon": 1
}
```
