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: 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 afterafterplus 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.
ClassifiedTimestamp: WhatbestAvailablereturns: the chosen timestamp and the class it carries.Crossing: WhatcrossingTimereturns: exact elapsed time plus the local view at either end.Cutoff: One named deadline in a cut-off stack: how long before the anchor, and at what local time.CutoffScheduleOptions: Options forcutoffSchedule:cutoffAt’s, withatLocalTimeread from each entry instead.CutoffTime: One computed deadline in a cut-off schedule.DeliverySchedule: WhatscheduleDeliveryreturns: the final local ETA and every leg’s times.DriftReport: WhatestimateDriftreturns.Dwell: WhatdwellTimereturns: exact elapsed time plus the local view every charging regime counts in.EstimateDriftOptions: Options forestimateDrift.Headway: A headway service: a departure everyheadwayfromfrom, up to (not including)to— the shape of a GTFSfrequencies.txtrow (headway_secs,start_time,end_time; GTFS Schedule Reference, https://github.com/google/transit/blob/master/gtfs/spec/en/reference.md#frequenciestxt).LegTime: One leg’s computed times, with the leg’s own tags echoed back.NextDepartureOptions: Options fornextDeparture.OnTimeRate: WhatpunctualityRatereturns: the on-time count, the total, and their ratio.PlannedActual: One planned/actual pair forpunctualityRate.
Accessibility
© 2026 NorthGuild · Licences
Code examples: MIT-0. Packages: MIT. Third-party data and components: their own licences, credited where they appear. Everything else: © 2026 NorthGuild, all rights reserved.