{
  "$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"
          },
          "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
}
