-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdorm_map.js
102 lines (94 loc) · 2.36 KB
/
dorm_map.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
/*
Basic map that takes possible user inputs and standardizes them to values
inside of the api. This could always use expanding any help would be great :)
*/
/*
Guidelines:
All keys should be a possible lowercase input and map to a valid api dorm name,
for example when a user wants laundry data about townsend, they may say:
ISR Townsend, Townsend, or just ISR
these result in the following mappings:
'isr townsend': 'ISR: Townsend'
'townsend': 'ISR: Townsend'
'isr': 'ISR: Townsend'
*/
/*
List of all api values:
1107 West Green
300 South Goodwin
Allen
Barton-Lundgren
Bousfield Rm 103
Busey-Evans
Daniels North
Daniels South
FAR: Oglesby
FAR: Trelease
Hopkins
ISR: Townsend
ISR: Wardall
LAR: Leonard
LAR: Shelden
Nugent
Nugent Rm 126
Orchard Downs North
Orchard Downs South
PAR: Babcock
PAR: Blaisdell
PAR: Carr
PAR: Saunders
Scott
Sherman Short
Sherman Tall
Snyder
TVD: Taft
TVD: Van Doren
Wassaja Room 1109
Weston
*/
var dormMap = {
'west green': '1107 West Green',
'three hunded south goodwin': '300 South Goodwin',
'allen': 'Allen',
'barton lundgren': 'Barton-Lundgren',
'barton': 'Barton-Lundgren',
'lundgren': 'Barton-Lundgren',
'barton and lundgren': 'Barton-Lundgren',
'bousfield': 'Bousfield Rm 103',
'busey': 'Busey-Evans',
'busey evans': 'Busey-Evans',
'evans': 'Busey-Evans',
'daniels': 'Daniels North',
'daniels north': 'Daniels North',
'daniels south': 'Daniels South',
'daniel': 'Daniels North',
'daniel north': 'Daniels North',
'daniel south': 'Daniels South',
'oglesby': 'FAR: Oglesby',
'trelease': 'FAR: Trelease',
'hopkins': 'Hopkins',
'isr': 'ISR: Townsend',
'townsend': 'ISR: Townsend',
'town send': 'ISR: Townsend',
'wardall': 'ISR: Wardall',
'ward all': 'ISR: Wardall',
'leonard': 'LAR: Leonard',
'shelden': 'LAR: Shelden',
'nugent': 'Nugent',
'nugent 126': 'Nugent Rm 126',
'orchard downs north': 'Orchard Downs North',
'orchard downs south': 'Orchard Downs South',
'babcock': 'PAR: Babcock',
'blaisdell': 'PAR: Blaisdell',
'carr': 'PAR: Carr',
'saunders': 'PAR: Saunders',
'scott': 'Scott',
'sherman short': 'Sherman Short',
'sherman tall': 'Sherman Tall',
'snyder': 'Snyder',
'taft': 'TVD: Taft',
'van doren': 'TVD: Van Doren',
'wassaja': 'Wassaja Room 1109',
'weston': 'Weston'
};
exports.dormMap = dormMap;