social.passports.travel.leg
One transport segment of a trip — a single origin-to-destination movement. Legs of a trip are grouped by a social.passports.folio.
Details · record, key tid
| Kind | record |
|---|---|
| Record key | tid |
| Authority | travel.passports.social |
| Indexed |
Record
record · key tidProperties
carrier
stringCarrier name, e.g. 'Japan Airlines' or 'Amtrak'.
maxLength: 100
carrierCode
stringTransport-agnostic carrier code — IATA airline code for flights (e.g. 'JL'), route abbreviation for non-IATA carriers (e.g. 'ACE' for Acela).
maxLength: 10
Inline destination place object. Self-contained — no external fetch required.
destinationTransportCode
stringTerminal code at destination — IATA airport code for flights (e.g. 'CDG'), station code for rail, etc. Overrides the place record's transport_code for this specific leg.
maxLength: 10
endDate
stringArrival date in YYYY-MM-DD format.
maxLength: 10
note
stringThe user's note about this leg.
maxLength: 3000
Inline origin place object. Self-contained — no external fetch required.
originTransportCode
stringTerminal code at origin — IATA airport code for flights (e.g. 'JFK'), station code for rail (e.g. 'NYP'), etc. Overrides the place record's transport_code for this specific leg.
maxLength: 10
serviceNumber
stringFlight number, train number, or equivalent service identifier, e.g. 'JL006' or 'Acela 2151'.
maxLength: 20
startDate
stringDeparture date in YYYY-MM-DD format. Stored as a date string rather than datetime to avoid timezone ambiguity — travel dates are calendar-day concepts.
maxLength: 10
Mode of transportation.
knownValues: flight | train | bus | car | ferry | walking | cycling | other
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
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.
-
An assertion that a set of flights belonged to one journey. Only 'createdAt' is required, and absent means unknown or not applicable. The reference points one way only, from trip to flight, and a trip references only flight records the author wrote.