social.passports.amtrak.ride

passports.social

Documentation

One Amtrak ride: the route or routes it counts for, the stations, and when. Every ride has a record, whether it was added by hand or came from a Travel leg (then travelLeg links to that leg's record and the stations and date are copied here), so the rail map can be rebuilt from these records alone.

main record

One Amtrak ride: the route or routes it counts for, the stations, and when. Every ride has a record, whether it was added by hand or came from a Travel leg (then travelLeg links to that leg's record and the stations and date are copied here), so the rail map can be rebuilt from these records alone.

Record Key tid Timestamp-based ID

Properties

accommodation string Optional

No description available.

maxLength: 30 bytes
Known values: Coach, Business, Roomette, Bedroom, Family Bedroom
createdAt string datetime Required

An RFC 3339 formatted timestamp.

destination ref #station Optional

Where the ride ended.

note string Optional

The rider's note about this ride.

maxLength: 3000 bytes
origin ref #station Optional

Where the ride started.

rideDate string Optional

Date of the ride in YYYY-MM-DD format. Left out when the rider hides dates.

maxLength: 10 bytes
routes array of string Optional

The routes the ride counts for. Usually one; a ride on shared track counts for each route on it (New York to Washington on the Northeast Corridor counts for the Cardinal, Crescent, Silver Meteor and Palmetto). Absent while a ride between two stations could be several routes and the rider hasn't said which.

maxLength: 13 items
status string Optional

ridden: the train ran and was taken. canceled: Amtrak canceled it, so the stretch counts as a freebie. busBridge: a bus ran in place of the train.

maxLength: 20 bytes
Known values: ridden, canceled, busBridge
substituteLeg string at-uri Optional

For a canceled ride or a bus bridge: the social.passports.travel.leg record of what the rider took instead, when it's published.

trainNumber string Optional

The train number, e.g. '48'.

maxLength: 20 bytes
travelLeg string at-uri Optional

The social.passports.travel.leg record this ride came from. A plain at-uri, not a strongRef: the leg is edited in place at the same address, and a pinned CID would be out of date after the first edit.

View raw schema
{
  "description": "One Amtrak ride: the route or routes it counts for, the stations, and when. Every ride has a record, whether it was added by hand or came from a Travel leg (then travelLeg links to that leg's record and the stations and date are copied here), so the rail map can be rebuilt from these records alone.",
  "key": "tid",
  "record": {
    "properties": {
      "accommodation": {
        "knownValues": [
          "Coach",
          "Business",
          "Roomette",
          "Bedroom",
          "Family Bedroom"
        ],
        "maxLength": 30,
        "type": "string"
      },
      "createdAt": {
        "format": "datetime",
        "type": "string"
      },
      "destination": {
        "description": "Where the ride ended.",
        "ref": "#station",
        "type": "ref"
      },
      "note": {
        "description": "The rider's note about this ride.",
        "maxLength": 3000,
        "type": "string"
      },
      "origin": {
        "description": "Where the ride started.",
        "ref": "#station",
        "type": "ref"
      },
      "rideDate": {
        "description": "Date of the ride in YYYY-MM-DD format. Left out when the rider hides dates.",
        "maxLength": 10,
        "type": "string"
      },
      "routes": {
        "description": "The routes the ride counts for. Usually one; a ride on shared track counts for each route on it (New York to Washington on the Northeast Corridor counts for the Cardinal, Crescent, Silver Meteor and Palmetto). Absent while a ride between two stations could be several routes and the rider hasn't said which.",
        "items": {
          "knownValues": [
            "coast_starlight",
            "empire_builder",
            "california_zephyr",
            "southwest_chief",
            "sunset_limited",
            "texas_eagle",
            "city_of_new_orleans",
            "lake_shore_limited",
            "floridian",
            "cardinal",
            "crescent",
            "silver_meteor",
            "palmetto"
          ],
          "maxLength": 50,
          "type": "string"
        },
        "maxLength": 13,
        "type": "array"
      },
      "status": {
        "description": "ridden: the train ran and was taken. canceled: Amtrak canceled it, so the stretch counts as a freebie. busBridge: a bus ran in place of the train.",
        "knownValues": [
          "ridden",
          "canceled",
          "busBridge"
        ],
        "maxLength": 20,
        "type": "string"
      },
      "substituteLeg": {
        "description": "For a canceled ride or a bus bridge: the social.passports.travel.leg record of what the rider took instead, when it's published.",
        "format": "at-uri",
        "type": "string"
      },
      "trainNumber": {
        "description": "The train number, e.g. '48'.",
        "maxLength": 20,
        "type": "string"
      },
      "travelLeg": {
        "description": "The social.passports.travel.leg record this ride came from. A plain at-uri, not a strongRef: the leg is edited in place at the same address, and a pinned CID would be out of date after the first edit.",
        "format": "at-uri",
        "type": "string"
      }
    },
    "required": [
      "createdAt"
    ],
    "type": "object"
  },
  "type": "record"
}
station object

An Amtrak station.

Properties

code string Required

Amtrak's station code, e.g. 'GSC'.

maxLength: 8 bytes
name string Optional

The station's name, e.g. 'Glenwood Springs'.

maxLength: 100 bytes
View raw schema
{
  "description": "An Amtrak station.",
  "properties": {
    "code": {
      "description": "Amtrak's station code, e.g. 'GSC'.",
      "maxLength": 8,
      "type": "string"
    },
    "name": {
      "description": "The station's name, e.g. 'Glenwood Springs'.",
      "maxLength": 100,
      "type": "string"
    }
  },
  "required": [
    "code"
  ],
  "type": "object"
}

Lexicon Garden

@