@transportme/load-ptv-gtfs 1.4.17 → 1.4.19
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.
|
@@ -2,7 +2,7 @@ import { TRANSIT_MODES } from '../constants.mjs'
|
|
|
2
2
|
import GTFSCalendar from './GTFSCalendar.mjs'
|
|
3
3
|
|
|
4
4
|
export default class GTFSTrip {
|
|
5
|
-
|
|
5
|
+
|
|
6
6
|
#routeGTFSID
|
|
7
7
|
#calendarName
|
|
8
8
|
#operationDays
|
|
@@ -11,6 +11,7 @@ export default class GTFSTrip {
|
|
|
11
11
|
#headsign
|
|
12
12
|
#direction
|
|
13
13
|
#block
|
|
14
|
+
#stopData
|
|
14
15
|
|
|
15
16
|
/**
|
|
16
17
|
*
|
|
@@ -102,6 +103,14 @@ export default class GTFSTrip {
|
|
|
102
103
|
getGTFSDirection() {
|
|
103
104
|
return parseInt(this.#direction)
|
|
104
105
|
}
|
|
106
|
+
|
|
107
|
+
setStopData(stopData) {
|
|
108
|
+
this.#stopData = stopData
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
getStopData() {
|
|
112
|
+
return this.#stopData
|
|
113
|
+
}
|
|
105
114
|
}
|
|
106
115
|
|
|
107
116
|
/**
|
|
@@ -151,12 +151,13 @@ export default class TripLoader {
|
|
|
151
151
|
return data
|
|
152
152
|
})
|
|
153
153
|
|
|
154
|
+
tripData.setStopData(stopTimings)
|
|
154
155
|
|
|
155
156
|
let dbTrip = {
|
|
156
157
|
mode: this.#mode,
|
|
157
|
-
...tripData.getTripData(),
|
|
158
158
|
routeName: routeData.routeName,
|
|
159
159
|
routeNumber: routeData.routeNumber,
|
|
160
|
+
...tripData.getTripData(),
|
|
160
161
|
stopTimings
|
|
161
162
|
}
|
|
162
163
|
|