-
Notifications
You must be signed in to change notification settings - Fork 1
/
frequencies.js
34 lines (30 loc) · 1.07 KB
/
frequencies.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
'use strict'
const {ok} = require('assert')
const {b} = require('./routes')
const trips = require('./trips')
const bDowntownOnWorkingDays = trips.find(t => t.trip_id === 'b-downtown-on-working-days')
ok(bDowntownOnWorkingDays, 'trip b-downtown-on-working-days not found')
const bOutboundOnWorkingDays = trips.find(t => t.trip_id === 'b-outbound-on-working-days')
ok(bOutboundOnWorkingDays, 'trip b-outbound-on-working-days not found')
const bDowntownSchoolService = {
trip_id: bDowntownOnWorkingDays.trip_id,
start_time: '08:00:00',
end_time: '08:59:00',
headway_secs: 5 * 60,
exact_times: '1', // Schedule-based trips with the exact same headway throughout the day.
}
const bOutboundSchoolService = {
trip_id: bOutboundOnWorkingDays.trip_id,
start_time: '15:00:00',
end_time: '16:00:00',
headway_secs: 10 * 60,
exact_times: '0', // Frequency-based trips.
}
const all = [
bDowntownSchoolService,
bOutboundSchoolService,
]
all.full = all.minimal = all
all.bDowntownSchoolService = bDowntownSchoolService
all.bOutboundSchoolService = bOutboundSchoolService
module.exports = all