-
Notifications
You must be signed in to change notification settings - Fork 1
/
routes.js
54 lines (48 loc) · 1014 Bytes
/
routes.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
'use strict'
const {mta, fta} = require('./agency')
const {bus, tram} = require('./lib/route-types')
const a = { // minimal
route_id: 'A',
agency_id: mta.agency_id,
route_short_name: 'Ada',
route_long_name: 'Ada Lovelace Bus Line',
route_type: bus + ''
}
const b = { // full
route_id: 'B',
agency_id: fta.agency_id,
route_short_name: 'Babbage',
route_long_name: 'Charles Babbage Tram Line',
route_desc: 'Connects the city center and the airport.',
route_type: tram + '',
route_url: fta.agency_url + 'lines/babbage.html',
route_color: 'FF0000',
route_text_color: 'FFFFFF',
route_sort_order: '4'
}
const c = {
route_id: 'C',
agency_id: mta.agency_id,
route_short_name: 'Cerf',
route_long_name: 'Cerf Express Line',
route_type: tram + ''
}
const d = {
route_id: 'D',
agency_id: fta.agency_id,
route_short_name: 'DST',
route_long_name: 'Daylight Saving Time Express',
route_type: tram + '',
}
module.exports = Object.assign([
a,
b,
c,
d,
], {
a,
b,
c,
d,
minimal: a, full: b
})