@@ -80,7 +80,7 @@ def get_nearby_stations(lat, lon):
80
80
'type': 'station',
81
81
'latitude': 48.12046,
82
82
'longitude': 11.61869,
83
- 'id': 1060,
83
+ 'id': 'de:09162: 1060' ,
84
84
'place': 'München',
85
85
'name': 'Innsbrucker Ring',
86
86
'hasLiveData': True,
@@ -138,7 +138,7 @@ def get_locations(query):
138
138
'type': 'station',
139
139
'latitude': 48.12046,
140
140
'longitude': 11.61869,
141
- 'id': 1060,
141
+ 'id': 'de:09162: 1060' ,
142
142
'place': 'München',
143
143
'name': 'Innsbrucker Ring',
144
144
'hasLiveData': True,
@@ -188,11 +188,15 @@ def get_route(start, dest,
188
188
change_limit = None ):
189
189
"""Plans a route from start to dest
190
190
191
+ Change in 1.3.1: accepts both 'old-style' integer IDs which were used
192
+ by the API before this version and the new string IDs which
193
+ look like `de:09162:6`.
194
+
191
195
Parameters
192
196
----------
193
- start : int/tuple
197
+ start : int/str/ tuple
194
198
The `station_id` of the starting station or a tuple of coordinates
195
- dest : int/tuple
199
+ dest : int/str/ tuple
196
200
`station_id` of the destination station or a tuple of coordinates
197
201
time : datetime, optional
198
202
arrival_time : bool, optional
@@ -261,6 +265,10 @@ def get_route(start, dest,
261
265
def get_departures (station_id ):
262
266
"""Get the next departures for `station_id`.
263
267
268
+ Change in 1.3.1: accepts both 'old-style' integer IDs which were used
269
+ by the API before this version and the new string IDs which
270
+ look like `de:09162:6`.
271
+
264
272
To get the `station_id` associated with a station name,
265
273
use :func:`get_id_for_station`.
266
274
0 commit comments