Get transport information from opendata.rmv.de
Project description
PyRMVtransport :bus:
Python library to make use of transport information from opendata.rmv.de.
Installation
$ pip install PyRMVtransport
Usage
import RMVtransport
rmv = RMVtransport.RMVtransport()
# Departures for station 3006904 (Mainz Hauptbahnhof)
rmv.get_departures(stationId='3006904')
rmv.output()
# Departures in the JSON formating for station 3006907 (Wiesbaden Hauptbahnhof)
# max. 5 results
# only specified products (S-Bahn, U-Bahn, Tram)
data = rmv.get_departures(stationId='3006907',
products=['S', 'U-Bahn', 'Tram'],
maxJourneys=5)
print(data)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
PyRMVtransport-0.1.1.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for PyRMVtransport-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7dde6460dc92df1c3227c2663e8c95c1377ef27af129ecbfe9dbdcb59c15899 |
|
MD5 | 33369a04f506e9ce4b1aa78d50094d04 |
|
BLAKE2b-256 | 37a6a21c1bfac10bf333e4fc30fd33a8f887ca8c5cd710dc892ec52c77e46f42 |