Skip to main content

VGN API for python 3

Project description

VGN

License Version PyPI download month Python versions Documentation Status Build Status

Python API for the Verkehrsverbund Grossraum Nuernberg (VGN).

Uses the official REST-API to query realtime public transport information for Nuremberg.

Read the docs for more information.

Example

import vgn

# Print all departures for the station with ID 704 (Nuernberg Plaerrer)
print(vgn.departure_schedule(704))
# Print all departures of the underground line two for the Nuernberg Plaerrer station
print(vgn.departure_schedule_for_line(704, "U2"))
# Get all bus rides in the VGN network within the timeframe of 30 minutes
print(vgn.rides(vgn.TransportType.BUS, 30))
# Return the route of bus with the ride id 2008502 for the current day

Project details


Download files

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

Source Distribution

vgn-0.0.3.tar.gz (6.0 kB view hashes)

Uploaded Source

Built Distribution

vgn-0.0.3-py3-none-any.whl (7.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page