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.0.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for PyRMVtransport-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fb85900ca5a4f481c7ef0be3cca3380d27af69f4a22f851fe93d8d456df44b2 |
|
MD5 | c3ebe3a5effea3ee89428b4239fea500 |
|
BLAKE2b-256 | 0ba69dc4abfa914f2fa1d94e089139290b2676a377abd283d5af674225ac19fd |