https://github.com/andreasfischer1985/vag-api
API zum VAG Abfahrtsmonitor mit Echtzeitprognose
https://github.com/andreasfischer1985/vag-api
Last synced: 26 days ago
JSON representation
API zum VAG Abfahrtsmonitor mit Echtzeitprognose
- Host: GitHub
- URL: https://github.com/andreasfischer1985/vag-api
- Owner: AndreasFischer1985
- Created: 2022-07-08T12:10:09.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-14T13:17:09.000Z (almost 3 years ago)
- Last Synced: 2025-03-29T23:22:37.535Z (about 2 months ago)
- Language: Python
- Homepage:
- Size: 333 KB
- Stars: 1
- Watchers: 1
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# VAG-API
[OpenAPI-Dokumentation](https://bundesapi.github.io/vag-api/) der API zu [start.vag](https://start.vag.de/desktop/) - dem Verkehrs-Aktiengesellschaft (VAG) Abfahrsmonitor mit Echtzeitprognose. Die API gibt Zugriff auf alle Haltestellen, Fahrten und Abfahrten im Gebiet des Verkehrsbund Großraum Nürnberg (VGN). Eine Schnittstellenbeschreibung durch die VAG findet sich auf [opendata.vag.de](https://opendata.vag.de) bzw. [hier](https://opendata.vag.de/dataset/api-echtzeitauskunft) unter [Creative CommonsAttribution 4.0 Int](https://creativecommons.org/licenses/by/4.0/) veröffentlicht.
Eine Übersicht über den VGN Gesamtraum findet sich unter vgn.de:
## Informationen zu Haltestellen, Abfahrten & Fahrten
Informationen zu Haltestellen, aktuellen Abfahrten und Fahrten (vgl. Angebote wie https://www.vag.de/#abfahrt oder https://start.vag.de/desktop/).
### Beispiel
```bash
haltestellen=$(curl https://start.vag.de/dm/api/haltestellen.json/vgn)
abfahrtenNbg=$(curl https://start.vag.de/dm/api/abfahrten.json/vgn/510)
fahrtenBus=$(curl https://start.vag.de/dm/api/v1/fahrten.json/bus)
```## Fahrplan-Informationen
Weitere Informationen zu Verbindungen zwischen zwei Haltestellen (vgl. Angebote wie https://www.vag.de/#fahrplan).
### Beispiel
```bash
haltestelle=$(curl https://efa-gateway.vag.de/api/v1/locations?name=Feucht)
verbindungen=$(curl https://apigateway.vag.de/efa/journeys?FromType=any&From=80000941&ToType=any&To=80021819&ChangeSpeed=normal&UseNearbyStops=false&RouteType=leasttime&MaxFootpath=10&Transportations=9462&TariffDetails=true&Departure=2022-07-08T07%3A39%3A00.000Z)
```