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

Commit 9db95d4

Browse files
authored
Add short example
1 parent d582b0a commit 9db95d4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,12 @@ A library for fetching departures, routes and service interruptions from Munich
55
## Get it on pypi:
66
`pip install mvg-api`
77

8+
9+
Then, `import mvg_api`.
10+
11+
To get the id for a particular Station, use something like `mvg_api.get_id_for_station("Hauptbahnhof")`.
12+
13+
You can use this id for getting departures with `mvg_api.get_departures(6)` and use it as the start or end of a route.
14+
815
## Documentation
916
[Read the Documentation](http://python-mvg-departures.readthedocs.io/en/latest/?)

0 commit comments

Comments
 (0)