-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstops.js
120 lines (114 loc) · 2.74 KB
/
stops.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
'use strict'
const {fta} = require('./agency')
const levels = require('./levels')
const center = [{ // minimal
stop_id: 'center',
stop_name: 'City Center',
stop_lat: 52.5,
stop_lon: 13.5
}]
center.station = center[0]
center.stops = []
const airport = [{ // full
stop_id: 'airport',
stop_code: '🛫',
stop_name: 'International Airport (ABC)',
stop_desc: 'train station at the Internationl Airport (ABC)',
stop_lat: 52.365,
stop_lon: 13.511,
// todo: zone_id
stop_url: fta.agency_url + 'stations/airport.html',
location_type: '1',
stop_timezone: 'Europe/Berlin',
wheelchair_boarding: '1'
}, {
stop_id: 'airport-1',
stop_name: 'Platform 1',
stop_desc: 'Platform 1',
stop_lat: 52.36396,
stop_lon: 13.5087,
// todo: zone_id
location_type: '0',
parent_station: 'airport',
wheelchair_boarding: '2',
level_id: levels.airport1.level_id,
}, {
stop_id: 'airport-1-access',
stop_name: null,
stop_desc: null,
stop_lat: 52.36454,
stop_lon: 13.51114,
location_type: '3',
parent_station: 'airport',
wheelchair_boarding: '2',
level_id: levels.airport1.level_id,
platform_code: '1',
}, {
stop_id: 'airport-2',
stop_name: 'Platform 2',
stop_desc: 'Platform 2',
stop_lat: 52.36417,
stop_lon: 13.50878,
// todo: zone_id
location_type: '0',
parent_station: 'airport',
wheelchair_boarding: '0',
level_id: levels.airport2.level_id,
platform_code: '2',
}, {
stop_id: 'airport-2-boarding',
stop_name: 'pl. 2 boarding',
stop_desc: 'platform 2 boarding area',
stop_lat: 52.36426,
stop_lon: 13.50915,
location_type: '4',
parent_station: 'airport-2',
wheelchair_boarding: '1',
level_id: levels.airport2.level_id,
}, {
stop_id: 'airport-2-access',
stop_name: null,
stop_desc: null,
stop_lat: 52.36471,
stop_lon: 13.51103,
location_type: '3',
parent_station: 'airport',
wheelchair_boarding: '1',
level_id: levels.airport2.level_id,
}, {
stop_id: 'airport-entrance',
stop_name: 'Entrance',
stop_desc: null,
stop_lat: 52.364509,
stop_lon: 13.510582,
location_type: '2',
parent_station: 'airport',
wheelchair_boarding: '1',
level_id: levels.airport0.level_id,
}]
airport.station = airport[0]
airport.stops = airport.slice(1)
const museum = [{ // full
stop_id: 'museum',
stop_code: '🎫',
stop_name: 'Awesome Museum',
stop_desc: 'The Awesome Museum displays awesome stuff.',
stop_lat: 52.44572,
stop_lon: 13.43657,
// todo: zone_id
stop_url: fta.agency_url + 'stations/museum.html',
location_type: '1'
}]
museum.station = museum[0]
const lake = [{
stop_id: 'lake',
stop_code: '🏊',
stop_name: 'Lake',
stop_lat: 52,
stop_lon: 13,
// todo: zone_id
stop_url: fta.agency_url + 'stations/lake.html'
}]
lake.station = lake[0]
const all = [].concat(center, airport, museum, lake)
module.exports = Object.assign(all, {center, airport, museum, lake})