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.

Repository @passports.social did:plc:ssdgllkzfwekkpmu7expw6cv not from the namespace authority
Details · record, key tid
Kindrecord
Record keytid
Authoritytravel.passports.social
Indexed

Record

record · key tid

Properties

carrier

string

Carrier name, e.g. 'Japan Airlines' or 'Amtrak'.

  • maxLength: 100

Transport-agnostic carrier code — IATA airline code for flights (e.g. 'JL'), route abbreviation for non-IATA carriers (e.g. 'ACE' for Acela).

  • maxLength: 10

createdAt

requiredstring · datetime

destination

requiredref

Inline destination place object. Self-contained — no external fetch required.

Terminal 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

string

Arrival date in YYYY-MM-DD format.

  • maxLength: 10

note

string

The user's note about this leg.

  • maxLength: 3000

origin

requiredref

Inline origin place object. Self-contained — no external fetch required.

Terminal 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

Flight number, train number, or equivalent service identifier, e.g. 'JL006' or 'Acela 2151'.

  • maxLength: 20

startDate

string

Departure 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

transportation

requiredstring

Mode of transportation.

  • knownValues: flight | train | bus | car | ferry | walking | cycling | other

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • social.passports.amtrak.ride

    record not from the namespace authority

    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.