VGN API for python 3
Project description
VGN
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.1.tar.gz
(5.0 kB
view hashes)
Built Distribution
vgn-0.0.1-py3-none-any.whl
(7.2 kB
view hashes)