-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCLI testdata script.txt
374 lines (345 loc) · 6.88 KB
/
CLI testdata script.txt
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
Directions to run CarPoolMashup (further below is test data)
=================================
Goto Google Cloud and get API Key, and assign API key with
Directions API
Distance Matrix API
Geocoding API
Maps JavaScript API
Copy key, and add to top of .bashrc
export GOOGLE_GEOCODE_API_KEY="API-key"
export GOOGLE_MAP_JS_API_KEY="API-key"
Make sure env var exists GOOGLE_GEOCODE_API_KEY
echo ${GOOGLE_GEOCODE_API_KEY:30}
Make sure env var exists GOOGLE_MAP_JS_API_KEY
echo ${GOOGLE_MAP_JS_API_KEY:30}
This program doesn't run as a daemon/server. It needs to be started manually.
If running from linux command line, it needs to be run w
sudo -E python3 main.py
root access is needed b/c python needs ability to open listening port 80
-E gives root, your environment variables
if you use port 8080, you will not need root access
python3 main.py 8080
Below are lines you can use paste into CLI,
to create some data to play with.
Copy lines between "==="
You should be in car pool menu, and paste.
Explanation: A is to enter (A)dd Destination
The rest is destination data
then repeat
========================================
a
BCIT Main Burnaby
3700 Willingdon Avenue,Burnaby
a
BCIT Downtown Campus
555 Seymour St, Vancouver
a
BCIT Marine Campus
265 W Esplanade,North Vancouver
a
BCIT Aerospace Technology Campus
3800 Cessna Dr,Richmond
a
BCIT Annacis Island Campus
1608 Cliveden Ave,Delta
a
BCIT Centre for Applied Research and Innovation (CARI)
4355 Mathissi Place, Burnaby
========================================
Copy lines between "==="
You should be in car pool menu, and paste.
Explanation: / is to Search for data entered above
m to enter members menu
a to add member
The rest is member data
then repeat add
========================================
/
BCIT Main Burnaby
1
m
a
604@bcit.ca
Steven Johnson
2626 Pr Edward Vancouver BC V5T 0A3
N
a
525@outlook.com
James M Smith
3449 22nd Ave W Vancouver BC V6S 1J1
Y
a
524@outlook.com
D E Williams
1385 Draycott Rd 420 North Vancouver BC V7J 3K9
N
a
327@yahoo.com
GD Johnson
4455 Trafalgar St 33 Vancouver BC V6L 2M7
Y
a
1169@outlook.com
S Tate.Smith
2445 3rd Ave W 1001 Vancouver BC V6K 4K6
N
a
8826@yahoo.com
G D Johnson
3316 Carriage Crt Coquitlam BC V3E 3G6
Y
a
9770@outlook.com
R Smith
2222 Edinburgh St 306 New Westminster BC V3M 2Y1
N
a
3899@outlook.com
B&c Smith
7943 Edmonds St Burnaby BC V3N 1C1
Y
a
988@outlook.com
M Johnson
6820 Dumfries St Vancouver BC V5P 3B9
N
a
TLSmith@yahoo.com
T L Smith
312 Monteray Ave North Vancouver BC V7N 3E6
Y
a
wd@gmail.com
Wei Dong
Hilton Vancouver Metrotown, 6083 McKay Ave, Burnaby
N
a
ak@gmail.com
A Kumar
Executive Suites Hotel & Conference Center, 4201 Lougheed Hwy, Metro Vancouver, Burnaby
N
a
hp@gmail.com
H Pabon
Holiday Inn Express Vancouver.Metrotown Burnaby), 4405 Central Blvd, Burnaby
N
a
km@gmail.com
Kulwant Mahairhu
Best Western PLUS Burnaby Hotel, 5411 Kingsway, Burnaby
N
a
ls@gmail.com
Leigh Su
Delta Hotels by Marriott Burnaby Conference Centre, 4331 Dominion St, Burnaby
N
a
mng@gmail.com
M Ng
Accent Inns Burnaby,3777 Henning Dr, Burnaby
N
a
sw@gmail.com
S Wong
Element Vancouver Metrotown, 5988 Willingdon Ave, Burnaby
N
a
jh@gmail.com
J Hourie
401 Inn, 2950 Boundary Rd, Burnaby
N
a
mm@gmail.com
M Milfee
Lily's lovely little house, 3749 Burke St, Burnaby
N
a
zl@gmail.com
Zhi Li
Happy Day Inn, 7330 6th St, Burnaby
N
a
jzmail.com
J Zhao
6433 Kisbey Ave, Burnaby
N
a
af@gmail.com
A Ferreira
301-6540 Burlington Ave, Burnaby
Y
a
sc@gmail.com
S Callaghan
4843 Chesham Ave, Burnaby
N
a
rc@gmail.com
Ronecia Capangpangan
309-9890 Manchester Dr, Burnaby
Y
a
fb@gmail.com
F Barbosa
407-6391 Waltham Ave, Burnaby
N
a
rv@gmail.com
Rosita Vicente
301-5645 Barker Ave, Burnaby
Y
a
nl@gmail.com
John Doe
206-6677 Sussex Ave, Burnaby
N
====================================
Copy lines between "==="
You should be in "Member list management MENU for [ BCIT Main Burnaby ]" menu,
and paste.
Explanation: / is to Search for member entered above
c is to change the data
The rest is member data
then exit into parent menu
====================================
/
mm@gmail.com
1
c
76 45th Ave E, Vancouver
q
q
============================
Copy lines between "==="
You should be in "Car Pool MENU for[ BCIT Main Burnaby ]" menu,
and paste.
Explanation: p is to manage pools
a is to create pool
The rest is entering emails of people in pool
then exit into parent menu
============================
p
a
ak@gmail.com
hp@gmail.com
km@gmail.com
ls@gmail.com
wd@gmail.com
sw@gmail.com
q
q
===============================
Copy lines between "==="
You should be in car pool menu, and paste.
Explanation: / is to Search for data entered above
m to enter members menu
a to add member
The rest is member data
then repeat add
===============================
/
BCIT Downtown Campus
1
m
a
FrankAdornato@gmail.com
Frank Adornato
4507 Dumfries St, Vancouver
y
a
JAdragna@gmail.com
J Adragna
3256 44th Ave E, Vancouver
y
a
ParisaAdrangi@gmail.com
Parisa Adrangi
2201-388 Drake St, Vancouver
y
a
JAdrian@gmail.com
J Adrian
298 22nd Ave E, Vancouver
y
a
JakeAdrian@gmail.com
Jake Adrian
336 41 1st Ave E, Vancouver
y
a
JohnAdrian@gmail.com
John J Adrian
2237 33rd Ave W, Vancouver
y
a
QAdrian@gmail.com
Q Adrian
5909 Trafalgar St, Vancouver
y
a
WesAdrian@gmail.com
Wes Adrian
2773 Alamein Ave, Vancouver
y
a
ZarcoAdriana@gmail.com
Zarco S Adriana
2698 4th Ave W, Vancouver
y
a
LAdriano@gmail.com
L Adriano
5288 30 Melbourne St, Vancouver
y
a
VAdvaney@gmail.com
V Advaney
3202-1408 Strathmore Mews, Vancouver
y
a
ElissaAeng@gmail.com
Elissa Aeng
806-5470 Ormidale St, Vancouver
y
a
MAeschlimann@gmail.com
M Aeschlimann
1742 3rd Ave E, Vancouver
y
q
===============
Copy lines between "==="
You should be in "Car Pool MENU for[ BCIT Downtown Campus ]" menu, and paste.
Explanation: p is to enter car pool management
a to add car pool
The rest is adding member email to carpool
then repeat add
===============
p
a
WesAdrian@gmail.com
ZarcoAdriana@gmail.com
LAdriano@gmail.com
VAdvaney@gmail.com
a
ElissaAeng@gmail.com
MAeschlimann@gmail.com
FrankAdornato@gmail.com
ParisaAdrangi@gmail.com
q
q
=================
The above should create enough test data and you can reload the map
http://localhost/allmembersmapcgi.py
If you do not see "Best Path for Pool" group on map
goto "View Car (P)ool Group" > [Group]
then "Refresh Distance (M)atrix"
then "Recalculate (P)ath"
refresh map and check box should be there to show best order
to drop everyone off from BCIT
If you do not see "Suggested Pools on map" checkbox on map
goto "View Car (P)ool Group" > [Group]
then "Refresh Distance (G)eocode"
then "Refresh (S)panning Tree"
refresh map and check box should be there to show
suggestions on how to divide everyone into 4 person car pools