Get transport information from opendata.rmv.de
Project description
PyRMVtransport
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.0.8.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for PyRMVtransport-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f8c8e7150713ac37403db6fe682327ff76e2287762803e73d618789e7e65803 |
|
MD5 | 5512de3ae80ad7a684fa56956e17e111 |
|
BLAKE2b-256 | 93000624e2b8a1a493032d11b799650909d2c9c12f49254c9457ee450a8c26af |