Skip to main content

Get transport information from opendata.rmv.de

Project description

PyRMVtransport :bus:

Python library to make use of transport information from opendata.rmv.de.

travis PyPi PyPi PyPi codecov Maintainability

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for PyRMVtransport, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size PyRMVtransport-0.1.1-py3-none-any.whl (5.0 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size PyRMVtransport-0.1.1.tar.gz (4.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page