# transport/calculate

Industry: Transport

- [`bestAvailable`](/gmt/reference/transport/calculate/bestAvailable/): Pick the best available timestamp for an event from its planned, estimated, requested and actual records, and say which class it is.
- [`crossingTime`](/gmt/reference/transport/calculate/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`](/gmt/reference/transport/calculate/cutoffAt/): Find a deadline stated as an offset before an anchor event, in the local time of the place that enforces it.
- [`cutoffSchedule`](/gmt/reference/transport/calculate/cutoffSchedule/): Compute a whole stack of cut-offs against one anchor event, earliest first.
- [`dwellTime`](/gmt/reference/transport/calculate/dwellTime/): Measure how long something sat somewhere, and how many local calendar days it sat there.
- [`estimateDrift`](/gmt/reference/transport/calculate/estimateDrift/): Measure how far an estimate moved between its first and last revision.
- [`nextDeparture`](/gmt/reference/transport/calculate/nextDeparture/): Find the next departure a connection can make: the first scheduled departure at or after `after` plus the minimum connection time.
- [`punctualityRate`](/gmt/reference/transport/calculate/punctualityRate/): The share of planned/actual pairs that were on time under one tolerance.
- [`scheduleDelivery`](/gmt/reference/transport/calculate/scheduleDelivery/): Chain the legs of a multi-modal move into an end-to-end ETA with zone-local times at every handoff.
- [`transitTime`](/gmt/reference/transport/calculate/transitTime/): Add a transit duration to a departure and return the arrival, in the departure's own zone.

## Types

- [`ClassifiedTimestamp`](/gmt/reference/transport/calculate/bestAvailable/#classifiedtimestamp): What `bestAvailable` returns: the chosen timestamp and the class it carries.
- [`Crossing`](/gmt/reference/transport/calculate/crossingTime/#crossing): What `crossingTime` returns: exact elapsed time plus the local view at either end.
- [`Cutoff`](/gmt/reference/transport/calculate/cutoffSchedule/#cutoff): One named deadline in a cut-off stack: how long before the anchor, and at what local time.
- [`CutoffScheduleOptions`](/gmt/reference/transport/calculate/cutoffSchedule/#cutoffscheduleoptions): Options for `cutoffSchedule`: `cutoffAt`'s, with `atLocalTime` read from each entry instead.
- [`CutoffTime`](/gmt/reference/transport/calculate/cutoffSchedule/#cutofftime): One computed deadline in a cut-off schedule.
- [`DeliverySchedule`](/gmt/reference/transport/calculate/scheduleDelivery/#deliveryschedule): What `scheduleDelivery` returns: the final local ETA and every leg's times.
- [`DriftReport`](/gmt/reference/transport/calculate/estimateDrift/#driftreport): What `estimateDrift` returns.
- [`Dwell`](/gmt/reference/transport/calculate/dwellTime/#dwell): What `dwellTime` returns: exact elapsed time plus the local view every charging regime counts in.
- [`EstimateDriftOptions`](/gmt/reference/transport/calculate/estimateDrift/#estimatedriftoptions): Options for `estimateDrift`.
- [`Headway`](/gmt/reference/transport/calculate/nextDeparture/#headway): A headway service: a departure every `headway` from `from`, up to (not including) `to` — the shape of a GTFS `frequencies.txt` row (`headway_secs`, `start_time`, `end_time`; GTFS Schedule Reference, https://github.com/google/transit/blob/master/gtfs/spec/en/reference.md#frequenciestxt).
- [`LegTime`](/gmt/reference/transport/calculate/scheduleDelivery/#legtime): One leg's computed times, with the leg's own tags echoed back.
- [`NextDepartureOptions`](/gmt/reference/transport/calculate/nextDeparture/#nextdepartureoptions): Options for `nextDeparture`.
- [`OnTimeRate`](/gmt/reference/transport/calculate/punctualityRate/#ontimerate): What `punctualityRate` returns: the on-time count, the total, and their ratio.
- [`PlannedActual`](/gmt/reference/transport/calculate/punctualityRate/#plannedactual): One planned/actual pair for `punctualityRate`.
