corequery-gtfs 0.15.0 → 0.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/data/trip/added/gtfs-added-trip-originating-movement.d.ts +4 -2
- package/dist/data/trip/added/gtfs-added-trip-originating-movement.js +7 -5
- package/dist/data/trip/added/gtfs-added-trip-originating-movement.js.map +1 -1
- package/dist/data/trip/added/gtfs-added-trip-regular-movement.d.ts +8 -4
- package/dist/data/trip/added/gtfs-added-trip-regular-movement.js +13 -9
- package/dist/data/trip/added/gtfs-added-trip-regular-movement.js.map +1 -1
- package/dist/data/trip/added/gtfs-added-trip-terminating-movement.d.ts +4 -2
- package/dist/data/trip/added/gtfs-added-trip-terminating-movement.js +7 -5
- package/dist/data/trip/added/gtfs-added-trip-terminating-movement.js.map +1 -1
- package/dist/data/trip/replaced/gtfs-replaced-trip-originating-movement.d.ts +12 -4
- package/dist/data/trip/replaced/gtfs-replaced-trip-originating-movement.js +46 -10
- package/dist/data/trip/replaced/gtfs-replaced-trip-originating-movement.js.map +1 -1
- package/dist/data/trip/replaced/gtfs-replaced-trip-regular-movement.d.ts +20 -6
- package/dist/data/trip/replaced/gtfs-replaced-trip-regular-movement.js +85 -15
- package/dist/data/trip/replaced/gtfs-replaced-trip-regular-movement.js.map +1 -1
- package/dist/data/trip/replaced/gtfs-replaced-trip-terminating-movement.d.ts +12 -4
- package/dist/data/trip/replaced/gtfs-replaced-trip-terminating-movement.js +46 -10
- package/dist/data/trip/replaced/gtfs-replaced-trip-terminating-movement.js.map +1 -1
- package/dist/data/trip/replaced/types.d.ts +2 -1
- package/dist/data/trip/updated/gtfs-updated-trip-originating-movement.js +5 -2
- package/dist/data/trip/updated/gtfs-updated-trip-originating-movement.js.map +1 -1
- package/dist/data/trip/updated/gtfs-updated-trip-regular-movement.js +18 -7
- package/dist/data/trip/updated/gtfs-updated-trip-regular-movement.js.map +1 -1
- package/dist/data/trip/updated/gtfs-updated-trip-terminating-movement.js +5 -2
- package/dist/data/trip/updated/gtfs-updated-trip-terminating-movement.js.map +1 -1
- package/dist/gtfs-system.d.ts +2 -2
- package/dist/gtfs-system.js.map +1 -1
- package/dist/parser/error-types.d.ts +314 -0
- package/dist/parser/error-types.js +515 -0
- package/dist/parser/error-types.js.map +1 -0
- package/dist/parser/gtfs-feed-parser.d.ts +1 -2
- package/dist/parser/gtfs-feed-parser.js +2 -2
- package/dist/parser/gtfs-feed-parser.js.map +1 -1
- package/dist/parser/gtfs-route-matcher.d.ts +1 -6
- package/dist/parser/gtfs-route-matcher.js +1 -7
- package/dist/parser/gtfs-route-matcher.js.map +1 -1
- package/dist/parser/realtime/gtfs-added-trip-update-parser.d.ts +3 -35
- package/dist/parser/realtime/gtfs-added-trip-update-parser.js +29 -68
- package/dist/parser/realtime/gtfs-added-trip-update-parser.js.map +1 -1
- package/dist/parser/realtime/gtfs-cancelled-trip-update-parser.d.ts +1 -2
- package/dist/parser/realtime/gtfs-cancelled-trip-update-parser.js +2 -1
- package/dist/parser/realtime/gtfs-cancelled-trip-update-parser.js.map +1 -1
- package/dist/parser/realtime/gtfs-realtime-data-parser.d.ts +1 -2
- package/dist/parser/realtime/gtfs-realtime-data-parser.js +1 -1
- package/dist/parser/realtime/gtfs-realtime-data-parser.js.map +1 -1
- package/dist/parser/realtime/gtfs-scheduled-trip-identifier.d.ts +2 -26
- package/dist/parser/realtime/gtfs-scheduled-trip-identifier.js +1 -37
- package/dist/parser/realtime/gtfs-scheduled-trip-identifier.js.map +1 -1
- package/dist/parser/realtime/gtfs-trip-update-parser.d.ts +1 -9
- package/dist/parser/realtime/gtfs-trip-update-parser.js +4 -10
- package/dist/parser/realtime/gtfs-trip-update-parser.js.map +1 -1
- package/dist/parser/realtime/gtfs-updated-trip-update-parser.d.ts +2 -65
- package/dist/parser/realtime/gtfs-updated-trip-update-parser.js +3 -95
- package/dist/parser/realtime/gtfs-updated-trip-update-parser.js.map +1 -1
- package/dist/parser/schedule/gtfs-calendar-parser.d.ts +2 -22
- package/dist/parser/schedule/gtfs-calendar-parser.js +1 -28
- package/dist/parser/schedule/gtfs-calendar-parser.js.map +1 -1
- package/dist/parser/schedule/gtfs-schedule-data-parser.d.ts +1 -3
- package/dist/parser/schedule/gtfs-schedule-data-parser.js +3 -2
- package/dist/parser/schedule/gtfs-schedule-data-parser.js.map +1 -1
- package/dist/parser/schedule/gtfs-stop-time-normaliser.d.ts +1 -11
- package/dist/parser/schedule/gtfs-stop-time-normaliser.js +1 -14
- package/dist/parser/schedule/gtfs-stop-time-normaliser.js.map +1 -1
- package/dist/parser/schedule/gtfs-transfer-parser.d.ts +2 -46
- package/dist/parser/schedule/gtfs-transfer-parser.js +1 -64
- package/dist/parser/schedule/gtfs-transfer-parser.js.map +1 -1
- package/dist/parser/schedule/gtfs-trip-parser.d.ts +2 -40
- package/dist/parser/schedule/gtfs-trip-parser.js +4 -52
- package/dist/parser/schedule/gtfs-trip-parser.js.map +1 -1
- package/package.json +1 -1
- package/dist/parser/realtime/gtfs-trip-update-parser-common-error-types.d.ts +0 -25
- package/dist/parser/realtime/gtfs-trip-update-parser-common-error-types.js +0 -37
- package/dist/parser/realtime/gtfs-trip-update-parser-common-error-types.js.map +0 -1
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import type { StopGtfsIdMapping } from "../../data/ids/stop-gtfs-id-mapping.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { TripUpdateJson } from "../../data/raw/realtime-data-json.js";
|
|
3
3
|
import type { GtfsScheduleData } from "../../data/gtfs-schedule-data.js";
|
|
4
4
|
import { GtfsAddedTrip } from "../../data/trip/added/gtfs-added-trip.js";
|
|
5
|
-
import {
|
|
6
|
-
import { type GtfsRouteMatchingError } from "../gtfs-route-matcher.js";
|
|
5
|
+
import { type GtfsAddedTripUpdateParsingError } from "../error-types.js";
|
|
7
6
|
import type { LineRoutesMapping } from "../../data/route/line-routes-mapping.js";
|
|
8
7
|
import type { BonusLinesMapping } from "../../data/route/bonus-lines-mapping.js";
|
|
9
8
|
import type { LineGtfsIdMapping } from "../../data/ids/line-gtfs-id-mapping.js";
|
|
@@ -21,36 +20,5 @@ export declare class GtfsAddedTripUpdateParser {
|
|
|
21
20
|
private readonly _routeMatcher;
|
|
22
21
|
constructor(fields: GtfsAddedTripUpdateParserFields);
|
|
23
22
|
parse(tripUpdate: TripUpdateJson, scheduleData: GtfsScheduleData): GtfsAddedTrip | null;
|
|
24
|
-
|
|
25
|
-
export type GtfsAddedTripUpdateParsingError = NecessaryFieldNotSuppliedForAddedTripError | AddedTripIdDuplicatesScheduledTripIdError | NoStopTimeUpdateFieldGivenError | UnsupportedStopTimeUpdateEntryScheduleRelationshipError | NecessaryFieldNotInStopTimeUpdateEntryError | StopTimeUpdateEntryReferencesUnmappedStopIdError | AddedTripStopTimeUpdateMissingTimeError | AddedTripReferencesUnmappedRouteIdError | GtfsRouteMatchingError | NonSequentialStopTimeUpdateEntryError;
|
|
26
|
-
export declare class NecessaryFieldNotSuppliedForAddedTripError {
|
|
27
|
-
readonly tripUpdate: TripUpdateJson;
|
|
28
|
-
readonly field: "tripId" | "routeId" | "startDate";
|
|
29
|
-
readonly type = "necessary-field-not-supplied-for-added-trip";
|
|
30
|
-
constructor(tripUpdate: TripUpdateJson, field: "tripId" | "routeId" | "startDate");
|
|
31
|
-
}
|
|
32
|
-
export declare class AddedTripIdDuplicatesScheduledTripIdError {
|
|
33
|
-
readonly tripUpdate: TripUpdateJson;
|
|
34
|
-
readonly tripId: string;
|
|
35
|
-
readonly type = "added-trip-id-duplicates-scheduled-trip-id";
|
|
36
|
-
constructor(tripUpdate: TripUpdateJson, tripId: string);
|
|
37
|
-
}
|
|
38
|
-
export declare class AddedTripStopTimeUpdateMissingTimeError {
|
|
39
|
-
readonly tripUpdate: TripUpdateJson;
|
|
40
|
-
readonly stopTimeUpdateEntry: StopTimeUpdateJson;
|
|
41
|
-
readonly type = "added-trip-stop-time-update-missing-time";
|
|
42
|
-
constructor(tripUpdate: TripUpdateJson, stopTimeUpdateEntry: StopTimeUpdateJson);
|
|
43
|
-
}
|
|
44
|
-
export declare class AddedTripReferencesUnmappedRouteIdError {
|
|
45
|
-
readonly tripUpdate: TripUpdateJson;
|
|
46
|
-
readonly gtfsRouteId: string;
|
|
47
|
-
readonly type = "trip-references-unmapped-route-id";
|
|
48
|
-
constructor(tripUpdate: TripUpdateJson, gtfsRouteId: string);
|
|
49
|
-
}
|
|
50
|
-
export declare class NonSequentialStopTimeUpdateEntryError {
|
|
51
|
-
readonly tripUpdate: TripUpdateJson;
|
|
52
|
-
readonly stopTimeUpdateEntry: StopTimeUpdateJson;
|
|
53
|
-
readonly expectedStopSequence: number;
|
|
54
|
-
readonly type = "non-sequential-stop-time-update-entry";
|
|
55
|
-
constructor(tripUpdate: TripUpdateJson, stopTimeUpdateEntry: StopTimeUpdateJson, expectedStopSequence: number);
|
|
23
|
+
private _parseTime;
|
|
56
24
|
}
|
|
@@ -3,8 +3,8 @@ import { GtfsAddedTripOriginatingMovement } from "../../data/trip/added/gtfs-add
|
|
|
3
3
|
import { GtfsAddedTripRegularMovement } from "../../data/trip/added/gtfs-added-trip-regular-movement.js";
|
|
4
4
|
import { GtfsAddedTripTerminatingMovement } from "../../data/trip/added/gtfs-added-trip-terminating-movement.js";
|
|
5
5
|
import { GtfsAddedTrip } from "../../data/trip/added/gtfs-added-trip.js";
|
|
6
|
-
import { NecessaryFieldNotInStopTimeUpdateEntryError, NoStopTimeUpdateFieldGivenError, StopTimeUpdateEntryReferencesUnmappedStopIdError, UnsupportedStopTimeUpdateEntryScheduleRelationshipError, } from "
|
|
7
|
-
import { GtfsRouteMatcher
|
|
6
|
+
import { AddedTripIdDuplicatesScheduledTripIdError, AddedTripReferencesUnmappedRouteIdError, AddedTripStopTimeUpdateMissingTimeError, NecessaryFieldNotSuppliedForAddedTripError, NecessaryFieldNotInStopTimeUpdateEntryError, NoStopTimeUpdateFieldGivenError, NonSequentialStopTimeUpdateEntryError, StopTimeUpdateEntryReferencesUnmappedStopIdError, UnsupportedStopTimeUpdateEntryScheduleRelationshipError, } from "../error-types.js";
|
|
7
|
+
import { GtfsRouteMatcher } from "../gtfs-route-matcher.js";
|
|
8
8
|
import { GtfsAddedTripPassingMovement } from "../../data/trip/added/gtfs-added-trip-passing-movement.js";
|
|
9
9
|
const STOP_TIME_UPDATE_ENTRY_SCHEDULE_RELATIONSHIP_SCHEDULED = "SCHEDULED";
|
|
10
10
|
const STOP_TIME_PROPERTIES_DROP_OFF_PICKUP_TYPE_NONE = "NONE";
|
|
@@ -90,53 +90,46 @@ export class GtfsAddedTripUpdateParser {
|
|
|
90
90
|
}
|
|
91
91
|
const stopId = gtfsIdMetadata.stopId;
|
|
92
92
|
const positionId = gtfsIdMetadata.type === "positional" ? gtfsIdMetadata.positionId : null;
|
|
93
|
-
// TODO: PTV still seems to provide delay values for "ADDED" trips, from
|
|
94
|
-
// which we could infer scheduled times for these added trips. The added
|
|
95
|
-
// trip movement classes don't currently support scheduled vs realtime
|
|
96
|
-
// times because I assumed GTFS-RT wouldn't supply scheduled times for
|
|
97
|
-
// added trips, but it looks like that's wrong!
|
|
98
93
|
if (i === 0) {
|
|
99
|
-
const
|
|
100
|
-
if (
|
|
94
|
+
const departure = this._parseTime(entry.departure ?? null);
|
|
95
|
+
if (departure == null) {
|
|
101
96
|
const Err = AddedTripStopTimeUpdateMissingTimeError;
|
|
102
97
|
this._onError(new Err(tripUpdate, entry));
|
|
103
98
|
return null;
|
|
104
99
|
}
|
|
105
|
-
const departureTime = Temporal.Instant.fromEpochMilliseconds(departureTimestamp * 1000);
|
|
106
100
|
servicingMovements.push(new GtfsAddedTripOriginatingMovement({
|
|
107
101
|
stopId,
|
|
108
102
|
positionId,
|
|
109
|
-
|
|
103
|
+
scheduledDepartureTime: departure.scheduledTime,
|
|
104
|
+
knownRealtimeDepartureTime: departure.knownRealtimeTime,
|
|
110
105
|
gtfsIdMetadata,
|
|
111
106
|
gtfsStopSequence: entry.stopSequence,
|
|
112
107
|
}));
|
|
113
108
|
}
|
|
114
109
|
else if (i === sortedEntries.length - 1) {
|
|
115
|
-
const
|
|
116
|
-
if (
|
|
110
|
+
const arrival = this._parseTime(entry.arrival ?? null);
|
|
111
|
+
if (arrival == null) {
|
|
117
112
|
const Err = AddedTripStopTimeUpdateMissingTimeError;
|
|
118
113
|
this._onError(new Err(tripUpdate, entry));
|
|
119
114
|
return null;
|
|
120
115
|
}
|
|
121
|
-
const arrivalTime = Temporal.Instant.fromEpochMilliseconds(arrivalTimestamp * 1000);
|
|
122
116
|
servicingMovements.push(new GtfsAddedTripTerminatingMovement({
|
|
123
117
|
stopId,
|
|
124
118
|
positionId,
|
|
125
|
-
|
|
119
|
+
scheduledArrivalTime: arrival.scheduledTime,
|
|
120
|
+
knownRealtimeArrivalTime: arrival.knownRealtimeTime,
|
|
126
121
|
gtfsIdMetadata,
|
|
127
122
|
gtfsStopSequence: entry.stopSequence,
|
|
128
123
|
}));
|
|
129
124
|
}
|
|
130
125
|
else {
|
|
131
|
-
const
|
|
132
|
-
const
|
|
133
|
-
if (
|
|
126
|
+
const departure = this._parseTime(entry.departure ?? null);
|
|
127
|
+
const arrival = this._parseTime(entry.arrival ?? entry.departure ?? null);
|
|
128
|
+
if (arrival == null || departure == null) {
|
|
134
129
|
const Err = AddedTripStopTimeUpdateMissingTimeError;
|
|
135
130
|
this._onError(new Err(tripUpdate, entry));
|
|
136
131
|
return null;
|
|
137
132
|
}
|
|
138
|
-
const arrivalTime = Temporal.Instant.fromEpochMilliseconds(arrivalTimestamp * 1000);
|
|
139
|
-
const departureTime = Temporal.Instant.fromEpochMilliseconds(departureTimestamp * 1000);
|
|
140
133
|
// I'm not sure if V/Line actually supplies `stop_time_properties`
|
|
141
134
|
// (experimental field). If not, we might need to handle it manually.
|
|
142
135
|
// This could involve adding metadata to stops on each route, to say
|
|
@@ -149,8 +142,10 @@ export class GtfsAddedTripUpdateParser {
|
|
|
149
142
|
servicingMovements.push(new GtfsAddedTripRegularMovement({
|
|
150
143
|
stopId,
|
|
151
144
|
positionId,
|
|
152
|
-
|
|
153
|
-
|
|
145
|
+
scheduledArrivalTime: arrival.scheduledTime,
|
|
146
|
+
knownRealtimeArrivalTime: arrival.knownRealtimeTime,
|
|
147
|
+
scheduledDepartureTime: departure.scheduledTime,
|
|
148
|
+
knownRealtimeDepartureTime: departure.knownRealtimeTime,
|
|
154
149
|
gtfsIdMetadata,
|
|
155
150
|
gtfsStopSequence: entry.stopSequence,
|
|
156
151
|
picksUp,
|
|
@@ -171,52 +166,18 @@ export class GtfsAddedTripUpdateParser {
|
|
|
171
166
|
color: routeMatch.color,
|
|
172
167
|
});
|
|
173
168
|
}
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
tripId;
|
|
187
|
-
type = "added-trip-id-duplicates-scheduled-trip-id";
|
|
188
|
-
constructor(tripUpdate, tripId) {
|
|
189
|
-
this.tripUpdate = tripUpdate;
|
|
190
|
-
this.tripId = tripId;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
export class AddedTripStopTimeUpdateMissingTimeError {
|
|
194
|
-
tripUpdate;
|
|
195
|
-
stopTimeUpdateEntry;
|
|
196
|
-
type = "added-trip-stop-time-update-missing-time";
|
|
197
|
-
constructor(tripUpdate, stopTimeUpdateEntry) {
|
|
198
|
-
this.tripUpdate = tripUpdate;
|
|
199
|
-
this.stopTimeUpdateEntry = stopTimeUpdateEntry;
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
export class AddedTripReferencesUnmappedRouteIdError {
|
|
203
|
-
tripUpdate;
|
|
204
|
-
gtfsRouteId;
|
|
205
|
-
type = "trip-references-unmapped-route-id";
|
|
206
|
-
constructor(tripUpdate, gtfsRouteId) {
|
|
207
|
-
this.tripUpdate = tripUpdate;
|
|
208
|
-
this.gtfsRouteId = gtfsRouteId;
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
export class NonSequentialStopTimeUpdateEntryError {
|
|
212
|
-
tripUpdate;
|
|
213
|
-
stopTimeUpdateEntry;
|
|
214
|
-
expectedStopSequence;
|
|
215
|
-
type = "non-sequential-stop-time-update-entry";
|
|
216
|
-
constructor(tripUpdate, stopTimeUpdateEntry, expectedStopSequence) {
|
|
217
|
-
this.tripUpdate = tripUpdate;
|
|
218
|
-
this.stopTimeUpdateEntry = stopTimeUpdateEntry;
|
|
219
|
-
this.expectedStopSequence = expectedStopSequence;
|
|
169
|
+
_parseTime(updatedTime) {
|
|
170
|
+
if (updatedTime?.time == null)
|
|
171
|
+
return null;
|
|
172
|
+
const knownRealtimeTime = Temporal.Instant.fromEpochMilliseconds(updatedTime.time * 1000);
|
|
173
|
+
// Added trips have no scheduled trip to pull scheduled times from, but PTV
|
|
174
|
+
// still supplies a delay alongside the time, so we can work backwards from
|
|
175
|
+
// it. The GTFS-RT spec doesn't require `delay` for added trips, so this may
|
|
176
|
+
// be null.
|
|
177
|
+
const scheduledTime = updatedTime.delay != null
|
|
178
|
+
? knownRealtimeTime.subtract({ seconds: updatedTime.delay })
|
|
179
|
+
: null;
|
|
180
|
+
return { scheduledTime, knownRealtimeTime };
|
|
220
181
|
}
|
|
221
182
|
}
|
|
222
183
|
//# sourceMappingURL=gtfs-added-trip-update-parser.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gtfs-added-trip-update-parser.js","sourceRoot":"","sources":["../../../src/parser/realtime/gtfs-added-trip-update-parser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAO5C,OAAO,EAAE,gCAAgC,EAAE,MAAM,+DAA+D,CAAC;AACjH,OAAO,EAAE,4BAA4B,EAAE,MAAM,2DAA2D,CAAC;AACzG,OAAO,EAAE,gCAAgC,EAAE,MAAM,+DAA+D,CAAC;AACjH,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AAKzE,OAAO,EACL,2CAA2C,EAC3C,+BAA+B,EAC/B,gDAAgD,EAChD,uDAAuD,
|
|
1
|
+
{"version":3,"file":"gtfs-added-trip-update-parser.js","sourceRoot":"","sources":["../../../src/parser/realtime/gtfs-added-trip-update-parser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAO5C,OAAO,EAAE,gCAAgC,EAAE,MAAM,+DAA+D,CAAC;AACjH,OAAO,EAAE,4BAA4B,EAAE,MAAM,2DAA2D,CAAC;AACzG,OAAO,EAAE,gCAAgC,EAAE,MAAM,+DAA+D,CAAC;AACjH,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AAKzE,OAAO,EACL,yCAAyC,EACzC,uCAAuC,EACvC,uCAAuC,EACvC,0CAA0C,EAC1C,2CAA2C,EAC3C,+BAA+B,EAC/B,qCAAqC,EACrC,gDAAgD,EAChD,uDAAuD,GAExD,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAI5D,OAAO,EAAE,4BAA4B,EAAE,MAAM,2DAA2D,CAAC;AAEzG,MAAM,sDAAsD,GAAG,WAAW,CAAC;AAC3E,MAAM,8CAA8C,GAAG,MAAM,CAAC;AAU9D,MAAM,OAAO,yBAAyB;IACnB,QAAQ,CAAmD;IAE3D,kBAAkB,CAAoB;IACtC,kBAAkB,CAAoB;IACtC,aAAa,CAAmB;IAEjD,YAAY,MAAuC;QACjD,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC;QAC/B,IAAI,CAAC,kBAAkB,GAAG,MAAM,CAAC,iBAAiB,CAAC;QACnD,IAAI,CAAC,kBAAkB,GAAG,MAAM,CAAC,iBAAiB,CAAC;QAEnD,IAAI,CAAC,aAAa,GAAG,IAAI,gBAAgB,CAAC;YACxC,OAAO,EAAE,MAAM,CAAC,OAAO;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K,EAAE,UAAU,CAAC,KAAK;SACxB,CAAC,CAAC;IACL,CAAC;IAEO,UAAU,CAAC,WAAmC;QACpD,IAAI,WAAW,EAAE,IAAI,IAAI,IAAI;YAAE,OAAO,IAAI,CAAC;QAE3C,MAAM,iBAAiB,GAAG,QAAQ,CAAC,OAAO,CAAC,qBAAqB,CAC9D,WAAW,CAAC,IAAI,GAAG,IAAI,CACxB,CAAC;QAEF,2EAA2E;QAC3E,2EAA2E;QAC3E,4EAA4E;QAC5E,WAAW;QACX,MAAM,aAAa,GACjB,WAAW,CAAC,KAAK,IAAI,IAAI;YACvB,CAAC,CAAC,iBAAiB,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,WAAW,CAAC,KAAK,EAAE,CAAC;YAC5D,CAAC,CAAC,IAAI,CAAC;QAEX,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,CAAC;IAC9C,CAAC;CACF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { GtfsScheduleData } from "../../data/gtfs-schedule-data.js";
|
|
2
2
|
import type { TripUpdateJson } from "../../data/raw/realtime-data-json.js";
|
|
3
3
|
import { GtfsUpdatedTrip } from "../../data/trip/updated/gtfs-updated-trip.js";
|
|
4
|
-
import { type
|
|
4
|
+
import { type GtfsCancelledTripUpdateParsingError } from "../error-types.js";
|
|
5
5
|
export type GtfsCancelledTripUpdateParserFields = {
|
|
6
6
|
readonly timezone: string;
|
|
7
7
|
readonly onError: (error: GtfsCancelledTripUpdateParsingError) => void;
|
|
@@ -13,4 +13,3 @@ export declare class GtfsCancelledTripUpdateParser {
|
|
|
13
13
|
constructor(fields: GtfsCancelledTripUpdateParserFields);
|
|
14
14
|
parse(tripUpdate: TripUpdateJson, scheduleData: GtfsScheduleData): GtfsUpdatedTrip | null;
|
|
15
15
|
}
|
|
16
|
-
export type GtfsCancelledTripUpdateParsingError = GtfsScheduledTripIdentificationError;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { GtfsUpdatedTrip } from "../../data/trip/updated/gtfs-updated-trip.js";
|
|
2
|
-
import { GtfsScheduledTripIdentifier
|
|
2
|
+
import { GtfsScheduledTripIdentifier } from "./gtfs-scheduled-trip-identifier.js";
|
|
3
|
+
import {} from "../error-types.js";
|
|
3
4
|
export class GtfsCancelledTripUpdateParser {
|
|
4
5
|
_timezone;
|
|
5
6
|
_onError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gtfs-cancelled-trip-update-parser.js","sourceRoot":"","sources":["../../../src/parser/realtime/gtfs-cancelled-trip-update-parser.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAC/E,OAAO,
|
|
1
|
+
{"version":3,"file":"gtfs-cancelled-trip-update-parser.js","sourceRoot":"","sources":["../../../src/parser/realtime/gtfs-cancelled-trip-update-parser.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAC/E,OAAO,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AAClF,OAAO,EAA4C,MAAM,mBAAmB,CAAC;AAO7E,MAAM,OAAO,6BAA6B;IACvB,SAAS,CAAS;IAClB,QAAQ,CAEf;IAEO,eAAe,CAA8B;IAE9D,YAAY,MAA2C;QACrD,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC;QACjC,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC;QAE/B,IAAI,CAAC,eAAe,GAAG,IAAI,2BAA2B,CAAC;YACrD,OAAO,EAAE,IAAI,CAAC,QAAQ;SACvB,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CACH,UAA0B,EAC1B,YAA8B;QAE9B,MAAM,MAAM,GAAG,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;QAC5E,IAAI,MAAM,IAAI,IAAI;YAAE,OAAO,IAAI,CAAC;QAChC,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;QAEpC,OAAO,eAAe,CAAC,UAAU,CAAC,IAAI,EAAE,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC;YACvE,WAAW,EAAE,IAAI;SAClB,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -2,7 +2,7 @@ import { GtfsRealtimeData } from "../../data/gtfs-realtime-data.js";
|
|
|
2
2
|
import type { GtfsScheduleData } from "../../data/gtfs-schedule-data.js";
|
|
3
3
|
import type { StopGtfsIdMapping } from "../../data/ids/stop-gtfs-id-mapping.js";
|
|
4
4
|
import type { RealtimeDataJson } from "../../data/raw/realtime-data-json.js";
|
|
5
|
-
import {
|
|
5
|
+
import type { GtfsRealtimeDataParsingError } from "../error-types.js";
|
|
6
6
|
import type { LineRoutesMapping } from "../../data/route/line-routes-mapping.js";
|
|
7
7
|
import type { BonusLinesMapping } from "../../data/route/bonus-lines-mapping.js";
|
|
8
8
|
import type { LineGtfsIdMapping } from "../../data/ids/line-gtfs-id-mapping.js";
|
|
@@ -23,4 +23,3 @@ export declare class GtfsRealtimeDataParser {
|
|
|
23
23
|
private _parseTripUpdates;
|
|
24
24
|
private _breakTransfers;
|
|
25
25
|
}
|
|
26
|
-
export type GtfsRealtimeDataParsingError = GtfsTripUpdateParsingError;
|
|
@@ -2,7 +2,7 @@ import { GtfsRealtimeData } from "../../data/gtfs-realtime-data.js";
|
|
|
2
2
|
import { GtfsBrokenTransfer } from "../../data/gtfs-realtime-transfer.js";
|
|
3
3
|
import { MutableGtfsTransferMapping } from "../../data/gtfs-transfer-mapping.js";
|
|
4
4
|
import { GtfsUpdatedTrip } from "../../data/trip/updated/gtfs-updated-trip.js";
|
|
5
|
-
import { GtfsTripUpdateParser
|
|
5
|
+
import { GtfsTripUpdateParser } from "./gtfs-trip-update-parser.js";
|
|
6
6
|
export class GtfsRealtimeDataParser {
|
|
7
7
|
_tripUpdateParser;
|
|
8
8
|
constructor(fields) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gtfs-realtime-data-parser.js","sourceRoot":"","sources":["../../../src/parser/realtime/gtfs-realtime-data-parser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAE1E,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAG/E,OAAO,
|
|
1
|
+
{"version":3,"file":"gtfs-realtime-data-parser.js","sourceRoot":"","sources":["../../../src/parser/realtime/gtfs-realtime-data-parser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAE1E,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAG/E,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAkBpE,MAAM,OAAO,sBAAsB;IAChB,iBAAiB,CAAuB;IAEzD,YAAY,MAAoC;QAC9C,IAAI,CAAC,iBAAiB,GAAG,IAAI,oBAAoB,CAAC;YAChD,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,iBAAiB,EAAE,MAAM,CAAC,iBAAiB;YAC3C,iBAAiB,EAAE,MAAM,CAAC,iBAAiB;YAC3C,iBAAiB,EAAE,MAAM,CAAC,iBAAiB;YAC3C,iBAAiB,EAAE,MAAM,CAAC,iBAAiB;YAC3C,iBAAiB,EAAE,MAAM,CAAC,iBAAiB;YAC3C,OAAO,EAAE,MAAM,CAAC,OAAO;SACxB,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CACH,YAA8B,EAC9B,YAA8B;QAE9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,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC;wBACpD,eAAe,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;oBACvC,CAAC;gBACH,CAAC;YACH,CAAC;QACH,CAAC;QAED,OAAO,eAAe,CAAC,OAAO,EAAE,CAAC;IACnC,CAAC;CACF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { GtfsScheduleData } from "../../data/gtfs-schedule-data.js";
|
|
2
|
-
import type { GtfsScheduledTrip } from "../../data/trip/scheduled/gtfs-scheduled-trip.js";
|
|
3
2
|
import type { TripDescriptorJson } from "../../data/raw/realtime-data-json.js";
|
|
3
|
+
import { type GtfsScheduledTripIdentificationError } from "../error-types.js";
|
|
4
4
|
export type GtfsScheduledTripIdentifierFields = {
|
|
5
5
|
readonly onError: (error: GtfsScheduledTripIdentificationError) => void;
|
|
6
6
|
};
|
|
@@ -8,31 +8,7 @@ export declare class GtfsScheduledTripIdentifier {
|
|
|
8
8
|
private readonly _onError;
|
|
9
9
|
constructor(fields: GtfsScheduledTripIdentifierFields);
|
|
10
10
|
identify(tripDescriptor: TripDescriptorJson, scheduleData: GtfsScheduleData): {
|
|
11
|
-
trip: GtfsScheduledTrip;
|
|
11
|
+
trip: import("../../data/trip/scheduled/gtfs-scheduled-trip.js").GtfsScheduledTrip;
|
|
12
12
|
serviceDay: Temporal.PlainDate;
|
|
13
13
|
} | null;
|
|
14
14
|
}
|
|
15
|
-
export type GtfsScheduledTripIdentificationError = NecessaryFieldNotInTripDescriptorError | TripDescriptorReferencesNonExistentTripIdError | TripDoesNotOccurOnStartDateError | TripDescriptorStartTimeDoesNotMatchTripOriginStopTimeError;
|
|
16
|
-
export declare class NecessaryFieldNotInTripDescriptorError {
|
|
17
|
-
readonly tripDescriptor: TripDescriptorJson;
|
|
18
|
-
readonly field: "tripId" | "startDate";
|
|
19
|
-
readonly type = "necessary-field-not-in-trip-descriptor";
|
|
20
|
-
constructor(tripDescriptor: TripDescriptorJson, field: "tripId" | "startDate");
|
|
21
|
-
}
|
|
22
|
-
export declare class TripDescriptorReferencesNonExistentTripIdError {
|
|
23
|
-
readonly tripDescriptor: TripDescriptorJson;
|
|
24
|
-
readonly type = "trip-descriptor-references-non-existent-trip-id";
|
|
25
|
-
constructor(tripDescriptor: TripDescriptorJson);
|
|
26
|
-
}
|
|
27
|
-
export declare class TripDoesNotOccurOnStartDateError {
|
|
28
|
-
readonly tripDescriptor: TripDescriptorJson;
|
|
29
|
-
readonly trip: GtfsScheduledTrip;
|
|
30
|
-
readonly type = "trip-does-not-occur-on-start-date";
|
|
31
|
-
constructor(tripDescriptor: TripDescriptorJson, trip: GtfsScheduledTrip);
|
|
32
|
-
}
|
|
33
|
-
export declare class TripDescriptorStartTimeDoesNotMatchTripOriginStopTimeError {
|
|
34
|
-
readonly tripDescriptor: TripDescriptorJson;
|
|
35
|
-
readonly trip: GtfsScheduledTrip;
|
|
36
|
-
readonly type = "trip-descriptor-start-time-does-not-match-trip-origin-stop-time";
|
|
37
|
-
constructor(tripDescriptor: TripDescriptorJson, trip: GtfsScheduledTrip);
|
|
38
|
-
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { NecessaryFieldNotInTripDescriptorError, TripDescriptorReferencesNonExistentTripIdError, TripDescriptorStartTimeDoesNotMatchTripOriginStopTimeError, TripDoesNotOccurOnStartDateError, } from "../error-types.js";
|
|
1
2
|
export class GtfsScheduledTripIdentifier {
|
|
2
3
|
_onError;
|
|
3
4
|
constructor(fields) {
|
|
@@ -53,41 +54,4 @@ export class GtfsScheduledTripIdentifier {
|
|
|
53
54
|
return { trip, serviceDay: tripDescriptor.startDate };
|
|
54
55
|
}
|
|
55
56
|
}
|
|
56
|
-
// Naming "necessary" rather that "required" since "required" implies that it
|
|
57
|
-
// breaks the GTFS-RT spec, but in reality it's just that we don't support other
|
|
58
|
-
// methods of identifying the trip yet.
|
|
59
|
-
export class NecessaryFieldNotInTripDescriptorError {
|
|
60
|
-
tripDescriptor;
|
|
61
|
-
field;
|
|
62
|
-
type = "necessary-field-not-in-trip-descriptor";
|
|
63
|
-
constructor(tripDescriptor, field) {
|
|
64
|
-
this.tripDescriptor = tripDescriptor;
|
|
65
|
-
this.field = field;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
export class TripDescriptorReferencesNonExistentTripIdError {
|
|
69
|
-
tripDescriptor;
|
|
70
|
-
type = "trip-descriptor-references-non-existent-trip-id";
|
|
71
|
-
constructor(tripDescriptor) {
|
|
72
|
-
this.tripDescriptor = tripDescriptor;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
export class TripDoesNotOccurOnStartDateError {
|
|
76
|
-
tripDescriptor;
|
|
77
|
-
trip;
|
|
78
|
-
type = "trip-does-not-occur-on-start-date";
|
|
79
|
-
constructor(tripDescriptor, trip) {
|
|
80
|
-
this.tripDescriptor = tripDescriptor;
|
|
81
|
-
this.trip = trip;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
export class TripDescriptorStartTimeDoesNotMatchTripOriginStopTimeError {
|
|
85
|
-
tripDescriptor;
|
|
86
|
-
trip;
|
|
87
|
-
type = "trip-descriptor-start-time-does-not-match-trip-origin-stop-time";
|
|
88
|
-
constructor(tripDescriptor, trip) {
|
|
89
|
-
this.tripDescriptor = tripDescriptor;
|
|
90
|
-
this.trip = trip;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
57
|
//# sourceMappingURL=gtfs-scheduled-trip-identifier.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gtfs-scheduled-trip-identifier.js","sourceRoot":"","sources":["../../../src/parser/realtime/gtfs-scheduled-trip-identifier.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"gtfs-scheduled-trip-identifier.js","sourceRoot":"","sources":["../../../src/parser/realtime/gtfs-scheduled-trip-identifier.ts"],"names":[],"mappings":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;QACpC,EAAE;QACF,4EAA4E;QAC5E,wCAAwC;QACxC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,CAAC;YACtD,IAAI,CAAC,QAAQ,CAAC,IAAI,gCAAgC,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC,CAAC;YAC1E,OAAO,IAAI,CAAC;QACd,CAAC;QAED,4EAA4E;QAC5E,2EAA2E;QAC3E,wEAAwE;QACxE,kEAAkE;QAClE,IACE,cAAc,CAAC,SAAS,IAAI,IAAI;YAChC,CAAC,cAAc,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,EAChE,CAAC;YACD,MAAM,GAAG,GAAG,0DAA0D,CAAC;YACvE,IAAI,CAAC,QAAQ,CAAC,IAAI,GAAG,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC,CAAC;QAC/C,CAAC;QAED,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,cAAc,CAAC,SAAS,EAAE,CAAC;IACxD,CAAC;CACF"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import type { GtfsScheduleData } from "../../data/gtfs-schedule-data.js";
|
|
2
2
|
import type { TripUpdateJson } from "../../data/raw/realtime-data-json.js";
|
|
3
3
|
import type { StopGtfsIdMapping } from "../../data/ids/stop-gtfs-id-mapping.js";
|
|
4
|
-
import { type
|
|
5
|
-
import { type GtfsCancelledTripUpdateParsingError } from "./gtfs-cancelled-trip-update-parser.js";
|
|
6
|
-
import { type GtfsUpdatedTripUpdateParsingError } from "./gtfs-updated-trip-update-parser.js";
|
|
4
|
+
import { type GtfsTripUpdateParsingError } from "../error-types.js";
|
|
7
5
|
import type { LineRoutesMapping } from "../../data/route/line-routes-mapping.js";
|
|
8
6
|
import type { BonusLinesMapping } from "../../data/route/bonus-lines-mapping.js";
|
|
9
7
|
import type { LineGtfsIdMapping } from "../../data/ids/line-gtfs-id-mapping.js";
|
|
@@ -25,9 +23,3 @@ export declare class GtfsTripUpdateParser {
|
|
|
25
23
|
constructor(fields: GtfsTripUpdateParserFields);
|
|
26
24
|
parse(tripUpdate: TripUpdateJson, scheduleData: GtfsScheduleData): import("../../data/trip/added/gtfs-added-trip.js").GtfsAddedTrip | import("../../data/trip/replaced/gtfs-replaced-trip.js").GtfsReplacedTrip | import("../../data/trip/updated/gtfs-updated-trip.js").GtfsUpdatedTrip | null;
|
|
27
25
|
}
|
|
28
|
-
export type GtfsTripUpdateParsingError = UnsupportedTripUpdateScheduleRelationshipError | GtfsUpdatedTripUpdateParsingError | GtfsCancelledTripUpdateParsingError | GtfsAddedTripUpdateParsingError;
|
|
29
|
-
export declare class UnsupportedTripUpdateScheduleRelationshipError {
|
|
30
|
-
readonly tripUpdate: TripUpdateJson;
|
|
31
|
-
readonly type = "unsupported-trip-update-schedule-relationship";
|
|
32
|
-
constructor(tripUpdate: TripUpdateJson);
|
|
33
|
-
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { GtfsAddedTripUpdateParser
|
|
2
|
-
import { GtfsCancelledTripUpdateParser
|
|
3
|
-
import { GtfsUpdatedTripUpdateParser
|
|
1
|
+
import { GtfsAddedTripUpdateParser } from "./gtfs-added-trip-update-parser.js";
|
|
2
|
+
import { GtfsCancelledTripUpdateParser } from "./gtfs-cancelled-trip-update-parser.js";
|
|
3
|
+
import { GtfsUpdatedTripUpdateParser } from "./gtfs-updated-trip-update-parser.js";
|
|
4
|
+
import { UnsupportedTripUpdateScheduleRelationshipError, } from "../error-types.js";
|
|
4
5
|
const TRIP_UPDATE_SCHEDULE_RELATIONSHIP_SCHEDULED = "SCHEDULED";
|
|
5
6
|
const TRIP_UPDATE_SCHEDULE_RELATIONSHIP_CANCELLED = "CANCELED";
|
|
6
7
|
const TRIP_UPDATE_SCHEDULE_RELATIONSHIP_ADDED = "ADDED";
|
|
@@ -53,11 +54,4 @@ export class GtfsTripUpdateParser {
|
|
|
53
54
|
}
|
|
54
55
|
}
|
|
55
56
|
}
|
|
56
|
-
export class UnsupportedTripUpdateScheduleRelationshipError {
|
|
57
|
-
tripUpdate;
|
|
58
|
-
type = "unsupported-trip-update-schedule-relationship";
|
|
59
|
-
constructor(tripUpdate) {
|
|
60
|
-
this.tripUpdate = tripUpdate;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
57
|
//# sourceMappingURL=gtfs-trip-update-parser.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gtfs-trip-update-parser.js","sourceRoot":"","sources":["../../../src/parser/realtime/gtfs-trip-update-parser.ts"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"gtfs-trip-update-parser.js","sourceRoot":"","sources":["../../../src/parser/realtime/gtfs-trip-update-parser.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAC/E,OAAO,EAAE,6BAA6B,EAAE,MAAM,wCAAwC,CAAC;AACvF,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EACL,8CAA8C,GAE/C,MAAM,mBAAmB,CAAC;AAM3B,MAAM,2CAA2C,GAAG,WAAW,CAAC;AAChE,MAAM,2CAA2C,GAAG,UAAU,CAAC;AAC/D,MAAM,uCAAuC,GAAG,OAAO,CAAC;AACxD,MAAM,qCAAqC,GAAG,KAAK,CAAC;AAYpD,MAAM,OAAO,oBAAoB;IACd,QAAQ,CAA8C;IAEtD,kBAAkB,CAA8B;IAChD,oBAAoB,CAAgC;IACpD,gBAAgB,CAA4B;IAE7D,YAAY,MAAkC;QAC5C,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC;QAE/B,IAAI,CAAC,kBAAkB,GAAG,IAAI,2BAA2B,CAAC;YACxD,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,iBAAiB,EAAE,MAAM,CAAC,iBAAiB;YAC3C,iBAAiB,EAAE,MAAM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AI,8CAA8C,CAAC,UAAU,CAAC,CAC/D,CAAC;YACF,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;CACF"}
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
import type { StopGtfsIdMapping } from "../../data/ids/stop-gtfs-id-mapping.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { TripUpdateJson } from "../../data/raw/realtime-data-json.js";
|
|
3
3
|
import type { GtfsScheduleData } from "../../data/gtfs-schedule-data.js";
|
|
4
|
-
import type { GtfsScheduledTrip } from "../../data/trip/scheduled/gtfs-scheduled-trip.js";
|
|
5
4
|
import type { LineGtfsIdMapping } from "../../data/ids/line-gtfs-id-mapping.js";
|
|
6
5
|
import type { LineRoutesMapping } from "../../data/route/line-routes-mapping.js";
|
|
7
6
|
import type { BonusLinesMapping } from "../../data/route/bonus-lines-mapping.js";
|
|
8
7
|
import { GtfsReplacedTrip } from "../../data/trip/replaced/gtfs-replaced-trip.js";
|
|
9
8
|
import { GtfsUpdatedTrip } from "../../data/trip/updated/gtfs-updated-trip.js";
|
|
10
|
-
import type { GtfsUpdatedTripMovement } from "../../data/trip/updated/types.js";
|
|
11
9
|
import type { GtfsInterpolationMode } from "../../config/gtfs-config.js";
|
|
12
|
-
import { type
|
|
13
|
-
import { type GtfsScheduledTripIdentificationError } from "./gtfs-scheduled-trip-identifier.js";
|
|
14
|
-
import { NecessaryFieldNotInStopTimeUpdateEntryError, NoStopTimeUpdateFieldGivenError, StopTimeUpdateEntryReferencesUnmappedStopIdError, UnsupportedStopTimeUpdateEntryScheduleRelationshipError } from "./gtfs-trip-update-parser-common-error-types.js";
|
|
10
|
+
import { type GtfsUpdatedTripUpdateParsingError } from "../error-types.js";
|
|
15
11
|
export type GtfsUpdatedTripUpdateParserFields = {
|
|
16
12
|
readonly timezone: string;
|
|
17
13
|
readonly stopGtfsIdMapping: StopGtfsIdMapping;
|
|
@@ -34,62 +30,3 @@ export declare class GtfsUpdatedTripUpdateParser {
|
|
|
34
30
|
private _buildReplacedTrip;
|
|
35
31
|
private _parseUpdatedTime;
|
|
36
32
|
}
|
|
37
|
-
export type GtfsUpdatedTripUpdateParsingError = GtfsScheduledTripIdentificationError | GtfsRouteMatchingError | NoStopTimeUpdateFieldGivenError | UnsupportedStopTimeUpdateEntryScheduleRelationshipError | NecessaryFieldNotInStopTimeUpdateEntryError | StopTimeUpdateEntryReferencesNonExistentStopSequenceError | MultipleStopTimeUpdateEntriesForSameMovementIndexError | StopTimeUpdateEntryReferencesUnmappedStopIdError | StopTimeUpdateEntryChangesStopError | NeitherTimeNorDelayGivenError | TimeAndDelayDisagreeWithEachOtherError | NeitherArrivalNorDepartureGivenError | KnownDepartureTimesEntailTimeTravelError | TooFewSurvivingServicingMovementsError;
|
|
38
|
-
export declare class StopTimeUpdateEntryReferencesNonExistentStopSequenceError {
|
|
39
|
-
readonly tripUpdate: TripUpdateJson;
|
|
40
|
-
readonly stopTimeUpdateEntry: StopTimeUpdateJson;
|
|
41
|
-
readonly matchedTrip: GtfsScheduledTrip;
|
|
42
|
-
readonly type = "stop-time-update-entry-references-non-existent-stop-sequence";
|
|
43
|
-
constructor(tripUpdate: TripUpdateJson, stopTimeUpdateEntry: StopTimeUpdateJson, matchedTrip: GtfsScheduledTrip);
|
|
44
|
-
}
|
|
45
|
-
export declare class MultipleStopTimeUpdateEntriesForSameMovementIndexError {
|
|
46
|
-
readonly tripUpdate: TripUpdateJson;
|
|
47
|
-
readonly stopTimeUpdateEntry: StopTimeUpdateJson;
|
|
48
|
-
readonly matchedTrip: GtfsScheduledTrip;
|
|
49
|
-
readonly matchedMovementIndex: number;
|
|
50
|
-
readonly type = "multiple-stop-time-update-entries-for-same-movement-index";
|
|
51
|
-
constructor(tripUpdate: TripUpdateJson, stopTimeUpdateEntry: StopTimeUpdateJson, matchedTrip: GtfsScheduledTrip, matchedMovementIndex: number);
|
|
52
|
-
}
|
|
53
|
-
export declare class StopTimeUpdateEntryChangesStopError {
|
|
54
|
-
readonly tripUpdate: TripUpdateJson;
|
|
55
|
-
readonly stopTimeUpdateEntry: StopTimeUpdateJson;
|
|
56
|
-
readonly matchedTrip: GtfsScheduledTrip;
|
|
57
|
-
readonly matchedMovementIndex: number;
|
|
58
|
-
readonly type = "stop-time-update-entry-changes-stop";
|
|
59
|
-
constructor(tripUpdate: TripUpdateJson, stopTimeUpdateEntry: StopTimeUpdateJson, matchedTrip: GtfsScheduledTrip, matchedMovementIndex: number);
|
|
60
|
-
}
|
|
61
|
-
export declare class NeitherTimeNorDelayGivenError {
|
|
62
|
-
readonly tripUpdate: TripUpdateJson;
|
|
63
|
-
readonly stopTimeUpdateEntry: StopTimeUpdateJson;
|
|
64
|
-
readonly updatedTime: UpdatedTimeJson;
|
|
65
|
-
readonly type = "neither-time-nor-delay-given";
|
|
66
|
-
constructor(tripUpdate: TripUpdateJson, stopTimeUpdateEntry: StopTimeUpdateJson, updatedTime: UpdatedTimeJson);
|
|
67
|
-
}
|
|
68
|
-
export declare class TimeAndDelayDisagreeWithEachOtherError {
|
|
69
|
-
readonly tripUpdate: TripUpdateJson;
|
|
70
|
-
readonly stopTimeUpdateEntry: StopTimeUpdateJson;
|
|
71
|
-
readonly updatedTime: UpdatedTimeJson;
|
|
72
|
-
readonly parsedFromTime: Temporal.Instant;
|
|
73
|
-
readonly parsedFromDelay: Temporal.Instant;
|
|
74
|
-
readonly type = "time-and-delay-disagree-with-each-other";
|
|
75
|
-
constructor(tripUpdate: TripUpdateJson, stopTimeUpdateEntry: StopTimeUpdateJson, updatedTime: UpdatedTimeJson, parsedFromTime: Temporal.Instant, parsedFromDelay: Temporal.Instant);
|
|
76
|
-
}
|
|
77
|
-
export declare class NeitherArrivalNorDepartureGivenError {
|
|
78
|
-
readonly tripUpdate: TripUpdateJson;
|
|
79
|
-
readonly stopTimeUpdateEntry: StopTimeUpdateJson;
|
|
80
|
-
readonly type = "neither-arrival-nor-departure-given";
|
|
81
|
-
constructor(tripUpdate: TripUpdateJson, stopTimeUpdateEntry: StopTimeUpdateJson);
|
|
82
|
-
}
|
|
83
|
-
declare class KnownDepartureTimesEntailTimeTravelError {
|
|
84
|
-
readonly tripUpdate: TripUpdateJson;
|
|
85
|
-
readonly movements: readonly GtfsUpdatedTripMovement[];
|
|
86
|
-
readonly type = "known-departure-times-entail-time-travel";
|
|
87
|
-
constructor(tripUpdate: TripUpdateJson, movements: readonly GtfsUpdatedTripMovement[]);
|
|
88
|
-
}
|
|
89
|
-
declare class TooFewSurvivingServicingMovementsError {
|
|
90
|
-
readonly tripUpdate: TripUpdateJson;
|
|
91
|
-
readonly survivingMovements: GtfsUpdatedTripMovement[];
|
|
92
|
-
readonly type = "too-few-surviving-servicing-movements";
|
|
93
|
-
constructor(tripUpdate: TripUpdateJson, survivingMovements: GtfsUpdatedTripMovement[]);
|
|
94
|
-
}
|
|
95
|
-
export {};
|