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

Commit 719077e

Browse files
authored
Merge pull request #7 from paul0x1C/master
save location in Station class
2 parents 43c4ef2 + 3058f4c commit 719077e

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)