Skip to content
This repository was archived by the owner on Nov 6, 2021. It is now read-only.
This repository was archived by the owner on Nov 6, 2021. It is now read-only.

Update to use new API #12

@pc-coholic

Description

@pc-coholic

MVG has launched a new API while keeping the old one online.

Unfortunately, it seems like the data served by the old (currently used) API is staring to degrade. For example, queries for Garching-Hochbrück only return U-Bahn-trains but not any busses.

The new API lives at https://www.mvg.de/fahrinfo/api/departure/480?footway=0, where footway takes the current timeoffset parameter and 480 is the ID of the station (in this example: Garching-Hochbrück).

Querying for station-data can be done at https://www.mvg.de/fahrinfo/api/location/queryWeb?q=garching, with the q-parameter obviously being the search-string.

Queries need to be authorized by providing the "X-MVG-Authorization-Key-header. One possible value is for example 5af1beca494712ed38d313714d4caff6 (mvg.de website-key).

The new API is a lot more usable as it does not need any of that RPC-decryption that is currently used.

If anyone feels like implementing the new API - possibly while keeping compatibility to the current Syntax: please do so :-)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions