-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata.py
313 lines (309 loc) · 6.91 KB
/
data.py
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
# Estações BRT Belém
''' Stations groups:
- 0: Estação muito movimentada
- 1: Estação movimentada
- 2: Estação pouco movimentada
Station sides:
- A: Parada do lado de ida
- B: Parada do lado de volta
- None: Parada em ambos os sentidos
'''
stations = [
{'name': 'Terminal Maracacuera',
'location': 0,
'side': None,
'group': 0
},
{'name': 'Estação Castro Moura',
'location': 1.4,
'side': None,
'group': 2
},
{'name': 'Estação Eduardo Angelim',
'location': 2.0,
'side': None,
'group': 2
},
{'name': 'Estação Grêmio Literário',
'location': 2.6,
'side': None,
'group': 2
},
{'name': 'Estação Maguari',
'location': 3.9,
'side': None,
'group': 2
},
{'name': 'Estação José Homobono',
'location': 4.8,
'side': None,
'group': 2
},
{'name': 'Terminal Tapanã',
'location': 5.8,
'side': None,
'group': 0
},
{'name': 'Estação Sideral',
'location': 6.5,
'side': None,
'group': 2
},
{'name': 'Estação Morada do Sol',
'location': 7.6,
'side': None,
'group': 2
},
{'name': 'Estação Parque Shopping',
'location': 8.3,
'side': None,
'group': 1
},
{'name': 'Terminal Mangueirão',
'location': 10.0,
'side': None,
'group': 1
},
{'name': 'Estação Templo do Centenário',
'location': 10.7,
'side': None,
'group': 2
},
{'name': 'Estação Marinha',
'location': 11.8,
'side': None,
'group': 2
},
{'name': 'Estação Marambaia',
'location': 12.3,
'side': None,
'group': 2
},
{'name': 'Estação Tavares Bastos',
'location': 14.0,
'side': None,
'group': 2
},
{'name': 'Estação Tuna Luso',
'location': 14.8,
'side': 'B',
'group': 2
},
{'name': 'Estação Império Amazônico',
'location': 14.9,
'side': 'A',
'group': 2
},
{'name': 'Estação Júlio César (Aeronáutica)',
'location': 15.5,
'side': 'B',
'group': 2
},
{'name': 'Estação Júlio César',
'location': 15.7,
'side': 'A',
'group': 1
},
{'name': 'Estação Bosque (Ida)',
'location': 16.5,
'side': 'A',
'group': 1
},
{'name': 'Estação Bosque (Volta)',
'location': 16.9,
'side': 'B',
'group': 2
},
{'name': 'Estação Mauriti (Volta)',
'location': 17.4,
'side': 'B',
'group': 1
},
{'name': 'Estação Mauriti (Ida)',
'location': 17.5,
'side': 'A',
'group': 1
},
{'name': 'Estação Humaitá (Volta)',
'location': 17.9,
'side': 'B',
'group': 1
},
{'name': 'Estação Humaitá (Ida)',
'location': 18.1,
'side': 'A',
'group': 1
},
{'name': 'Estação Antônio Baena (Volta)',
'location': 18.5,
'side': 'B',
'group': 1
},
{'name': 'Estação Antônio Baena (Ida)',
'location': 18.6,
'side': 'A',
'group': 1
},
{'name': 'Terminal São Brás',
'location': 19.1,
'side': 'B',
'group': 0
},
]
''' Semaphore groups:
- 0: Cruzamento movimentado
- 1: Cruzamento comum
- 2: Travessia de pedestres
'''
semaphores = [
{'perimeter': 'Supermercado Armazém',
'location': 0.2,
'group': 2,
},
{'perimeter': 'Estação Castro Moura',
'location': 1.4,
'group': 2,
},
{'perimeter': 'Augusto Montenegro com Rua Alacide Nunes (Tenoné)',
'location': 3.4,
'group': 1,
},
{'perimeter': 'Estação Maguari',
'location': 4.0,
'group': 2,
},
{'perimeter': 'Augusto Montenegro com Avenida Principal (Conj Maguari)',
'location': 4.1,
'group': 1,
},
{'perimeter': 'Retorno Augusto Montenegro (Líder Augusto Montenegro)',
'location': 5.1,
'group': 1,
},
{'perimeter': 'Augusto Montenegro com Mário Covas (Satélite)',
'location': 5.8,
'group': 0,
},
{'perimeter': 'Augusto Montenegro com Estrada do Tapanã',
'location': 6.1,
'group': 0,
},
{'perimeter': 'Augusto Montenegro com Rua Sideral',
'location': 6.8,
'group': 1,
},
{'perimeter': 'Colégio Pequeno Príncipe Avante',
'location': 7.3,
'group': 2,
},
{'perimeter': 'Condomínio Sol Nascente',
'location': 7.7,
'group': 2,
},
{'perimeter': 'Retorno Augusto Montenegro (Colégio Paulista Belém)',
'location': 8.1,
'group': 1,
},
{'perimeter': 'Estação Parque Shopping',
'location': 8.5,
'group': 2,
},
{'perimeter': 'Conjunto Natália Lins',
'location': 9.7,
'group': 2,
},
{'perimeter': 'Terminal Mangueirão',
'location': 9.9,
'group': 1,
},
{'perimeter': 'Retorno Augusto Montenegro (Mangueirinho)',
'location': 10.4,
'group': 1,
},
{'perimeter': 'Estação Templo do Centenário',
'location': 10.8,
'group': 2,
},
{'perimeter': 'Retorno Augusto Montenegro (Marinha)',
'location': 11.7,
'group': 1,
},
{'perimeter': 'Augusto Montenegro com Rua da Marinha',
'location': 11.9,
'group': 1,
},
{'perimeter': 'Augusto Montenegro (Marambaia)',
'location': 12.3,
'group': 2,
},
{'perimeter': 'Colégio Santa Madre',
'location': 12.6,
'group': 2,
},
{'perimeter': 'Augusto Montenegro com Entroncamento',
'location': 12.9,
'group': 2,
},
{'perimeter': 'Almirante Barroso com Tavares Bastos',
'location': 14.0,
'group': 0,
},
{'perimeter': 'Almirante Barroso com Tavares Bastos',
'location': 14.0,
'group': 0,
},
{'perimeter': 'Estação Tuna Luso',
'location': 14.8,
'group': 2,
},
{'perimeter': 'Almirante Barroso com Av Júlio César',
'location': 15.5,
'group': 0,
},
{'perimeter': 'Almirante Barroso com Av Doutor Freitas',
'location': 16.1,
'group': 1,
},
{'perimeter': 'Almirante Barroso com Tv Perebebuí',
'location': 16.4,
'group': 2,
},
{'perimeter': 'Almirante Barroso com Tv Lomas Valentinas',
'location': 16.8,
'group': 0,
},
{'perimeter': 'Av Almirante Barroso com Tv Angustugra',
'location': 17.0,
'group': 1,
},
{'perimeter': 'Av Almirante Barroso com Tv Mauriti',
'location': 17.3,
'group': 0,
},
{'perimeter': 'Av Almirante Barroso com Tv da Estrella',
'location': 17.5,
'group': 1,
},
{'perimeter': 'Escola Visconde de Souza Franco',
'location': 17.7,
'group': 2,
},
{'perimeter': 'Av Almirante Barroso com Tv Vileta',
'location': 17.8,
'group': 1,
},
{'perimeter': 'Av Almirante Barroso com Tv Humaitá',
'location': 18.0,
'group': 0,
},
{'perimeter': 'Av Almirante Barroso com Tv Antônio Baena',
'location': 18.5,
'group': 1,
},
{'perimeter': 'Av Almirante Barroso com Av Ceará',
'location': 18.8,
'group': 0,
},
]
#print(len(traffic_lights))
#print(len(stations))