world.treeline.defs

Repository @treeline.world did:plc:sjejpugpajgvxweilujzjcmq namespace authority
Details · defs
Kinddefs
Authoritytreeline.world
Indexed
cid bafyreihcvln4tfernz3fqvzljjb764vjuwxac6xlpn4hdj7yykfgblhj2y

Checks

Valid
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "coordinate": {
      "description": "A coordinate tuple [longitude, latitude, elevation?] encoded as decimal strings (the ATProto data model has no floats).",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "externalIds": {
      "description": "Cross-references to public open mapping registries (OSM, COTREX, USFS, OpenTrails, Wikidata).",
      "properties": {
        "cotrexId": {
          "description": "Colorado Trail Explorer (COTREX) feature ID.",
          "type": "string"
        },
        "openTrailsId": {
          "description": "OpenTrails standard dataset feature identifier.",
          "type": "string"
        },
        "osmRelationId": {
          "description": "OpenStreetMap Relation ID.",
          "type": "string"
        },
        "osmWayId": {
          "description": "OpenStreetMap Way ID.",
          "type": "string"
        },
        "usfsTrailNumber": {
          "description": "US Forest Service official trail designation number (e.g. '514').",
          "type": "string"
        },
        "wikidataId": {
          "description": "Wikidata entity identifier.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "gradeStats": {
      "description": "Gradient statistics and climb categorization for climbs, descents, or trail segments.",
      "properties": {
        "avgGradePct": {
          "description": "Mean gradient percentage as a decimal string (e.g. '7.5' or '-6.2').",
          "type": "string"
        },
        "climbCategory": {
          "description": "Standard cycling/running climb category rating.",
          "knownValues": [
            "HC",
            "1",
            "2",
            "3",
            "4",
            "uncategorized"
          ],
          "type": "string"
        },
        "maxGradePct": {
          "description": "Maximum slope gradient percentage as a decimal string (e.g. '18.2').",
          "type": "string"
        }
      },
      "type": "object"
    },
    "lineString": {
      "description": "Simplified GeoJSON LineString geometry for lightweight relay and map matching.",
      "properties": {
        "coordinates": {
          "description": "Array of coordinate tuples [lon, lat, ele?].",
          "items": {
            "ref": "#coordinate",
            "type": "ref"
          },
          "maxLength": 500,
          "type": "array"
        },
        "type": {
          "const": "LineString",
          "description": "GeoJSON geometry type specifier.",
          "type": "string"
        }
      },
      "required": [
        "type",
        "coordinates"
      ],
      "type": "object"
    }
  },
  "id": "world.treeline.defs",
  "lexicon": 1
}