Skip to content
This repository was archived by the owner on Jun 29, 2023. It is now read-only.

Commit 3058f4c

Browse files
committed
save location in class Station
1 parent 7356ecf commit 3058f4c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mvg_api/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,8 @@ def __init__(self, station):
289289
else:
290290
self.id = matching_stations[0]["id"]
291291
self.name = matching_stations[0]["name"]
292+
self.latitude = matching_stations[0]["latitude"]
293+
self.longitude = matching_stations[0]["longitude"]
292294

293295
def get_departures(self):
294296
return get_departures(self.id)

0 commit comments

Comments
 (0)