@@ -57,27 +57,27 @@ def get_nearby_stations(lat, lon):
57
57
58
58
[
59
59
{
60
- 'lines':
61
- {
62
- 'nachtbus': [],
63
- 'ubahn': ['2', '5', '7'],
64
- 'tram': [],
65
- 'sbahn': [],
66
- 'otherlines': [],
67
- 'nachttram': [],
68
- 'bus': []
69
- },
70
- 'hasLiveData': True,
71
- 'place': 'München',
72
- 'products': ['BUS', 'TRAM', 'UBAHN', 'SBAHN'],
60
+ 'type': 'station',
61
+ 'latitude': 48.12046,
62
+ 'longitude': 11.61869,
73
63
'id': 1060,
74
- 'type ': 'nearbystation ',
64
+ 'place ': 'München ',
75
65
'name': 'Innsbrucker Ring',
66
+ 'hasLiveData': True,
76
67
'hasZoomData': True,
77
- 'distance': 59,
78
- 'longitude': 11.619138,
79
- 'latitude': 48.120408
80
- },
68
+ 'products': ['UBAHN'],
69
+ 'aliases': 'Muenchen Munchen',
70
+ 'link': 'IR',
71
+ 'lines': {
72
+ 'tram': [],
73
+ 'nachttram': [],
74
+ 'sbahn': [],
75
+ 'ubahn': [],
76
+ 'bus': [],
77
+ 'nachtbus': [],
78
+ 'otherlines': []
79
+ }
80
+ },
81
81
]
82
82
83
83
"""
@@ -115,26 +115,26 @@ def get_locations(query):
115
115
116
116
[
117
117
{
118
- 'lines':
119
- {
120
- 'nachtbus': [],
121
- 'ubahn': ['2', '5', '7'],
122
- 'tram': [],
123
- 'sbahn': [],
124
- 'otherlines': [],
125
- 'nachttram': [],
126
- 'bus': []
127
- },
128
- 'hasLiveData': True,
129
- 'place': 'München',
130
- 'products': ['u'],
118
+ 'type': 'station',
119
+ 'latitude': 48.12046,
120
+ 'longitude': 11.61869,
131
121
'id': 1060,
132
- 'type ': 'nearbystation ',
122
+ 'place ': 'München ',
133
123
'name': 'Innsbrucker Ring',
124
+ 'hasLiveData': True,
134
125
'hasZoomData': True,
135
- 'distance': 59,
136
- 'longitude': 11.619138,
137
- 'latitude': 48.120408
126
+ 'products': ['UBAHN'],
127
+ 'aliases': 'Muenchen Munchen',
128
+ 'link': 'IR',
129
+ 'lines': {
130
+ 'tram': [],
131
+ 'nachttram': [],
132
+ 'sbahn': [],
133
+ 'ubahn': [],
134
+ 'bus': [],
135
+ 'nachtbus': [],
136
+ 'otherlines': []
137
+ }
138
138
},
139
139
]
140
140
@@ -180,6 +180,8 @@ def get_route(start, dest,
180
180
the desired time of arrival.
181
181
max_walk_time_to_start, max_walk_time_to_dest : int, optional
182
182
Maximum time of walking in minutes required to reach the start/dest.
183
+ changeLimit : int, optional
184
+ Specifies the maximum amount of changes.
183
185
"""
184
186
url = routing_url
185
187
options = []
@@ -239,15 +241,15 @@ def get_departures(station_id):
239
241
240
242
[
241
243
{
242
- 'departureTimeMinutes ': 0 ,
243
- 'destination ': 'Laimer Platz ',
244
- 'sev ': False ,
245
- 'departureId ': 1188266868 ,
244
+ 'departureTime ': 1571923180000 ,
245
+ 'product ': 'UBAHN ',
246
+ 'label ': 'U2' ,
247
+ 'destination ': 'Messestadt Ost' ,
246
248
'live': True,
247
- 'departureTime ': 1478644495000 ,
248
- 'lineBackgroundColor ': '#b78730' ,
249
- 'label ': '5' ,
250
- 'product ': 'u'
249
+ 'lineBackgroundColor ': '#dd3d4d' ,
250
+ 'departureId ': 1152101303 ,
251
+ 'sev ': False ,
252
+ 'departureTimeMinutes ': 0
251
253
},
252
254
]
253
255
0 commit comments