Skip to content

transport

  • Legs, dwell, cut-offs and punctuality, shared by road, rail, sea and air.

Transport is the part of moving goods or people that road, rail, sea and air share: a leg with a departure and an arrival, time spent waiting at a stop, a cut-off before a departure, a schedule, and how late counts as late. This layer works the same for every mode, and every time it handles is an exact instant shown in the zone where it is read.

Start with the guide: Transport: Legs and Dwell.

  • bestAvailable: Pick the best available timestamp for an event from its planned, estimated, requested and actual records, and say which class it is.
  • crossingTime: Measure a crossing — a canal transit, a strait passage, a border queue — and render both ends in the zone the crossing is administered in.
  • cutoffAt: Find a deadline stated as an offset before an anchor event, in the local time of the place that enforces it.
  • cutoffSchedule: Compute a whole stack of cut-offs against one anchor event, earliest first.
  • dwellTime: Measure how long something sat somewhere, and how many local calendar days it sat there.
  • estimateDrift: Measure how far an estimate moved between its first and last revision.
  • nextDeparture: Find the next departure a connection can make: the first scheduled departure at or after after plus the minimum connection time.
  • punctualityRate: The share of planned/actual pairs that were on time under one tolerance.
  • scheduleDelivery: Chain the legs of a multi-modal move into an end-to-end ETA with zone-local times at every handoff.
  • transitTime: Add a transit duration to a departure and return the arrival, in the departure’s own zone.
  • classifyPunctuality: Classify an arrival as early, on time or late against the caller’s tolerance.
  • isPastCutoff: Report whether a cut-off has passed.
  • scheduleDeviation: Measure how far an actual time is from its plan: positive when late, negative when early.
  • timeToCutoff: Measure the time left until a cut-off, negative once it has passed.
  • etaAtZone: Render an arrival instant as local time in the zone where it will be read.