{
"x-generator": "NSwag v12.0.10.0 (NJsonSchema v9.13.11.0 (Newtonsoft.Json v11.0.0.0))",
"swagger": "2.0",
"info": {
"title": "Anyways Transit API",
"description": "Welcome to documentation of the Anyways BVBA Transit API.
\nThe API offers routing over various public transport networks, such as train, bus, metro or tram networks.The heavy lifting of the routing is done by the Itinero-transit library, which is built to use Linked Connections.
\n
To query for a route using public transport, the API can be freely queried via HTTP. To do this, one must first obtain the identifiers of the departure and arrival stations. In the linked data philosophy, an identifier is an URL referring to a station. To obtain a station, one can either use the LocationsAround or LocationsByName endpoints. Please see the swagger documentation for more details.
Once that the locations are known, a journey over the PT-network can be obtained via the Journey-endpoint. Again, see the swagger file for a detailed explanation.
The demo endpoint only loads a few operators over a certain timespan. To see which operators are loaded during what time, consult the status endpoint.
To deploy your own Transit-server, use appsettings.json to specify the connection URLs of the operator which you want to load. An example can be found here