Expand description
§hafas-rest
A library for interacting with the hafas API. The main API-endpoint is located at https://v5.db.transport.rest/ For documentation of the API, look at https://github.com/derhuerst/db-rest/blob/5/docs/api.md.
The main struct for interacting with the API is Hafas, which uses rrw to initialize and use the API.
Structs§
- Address
- The Address of a Station.
- Alternative
- Alternatives to a Leg.
- Cycle
- The cyclic time of a Journey.
- Hafas
- Journey
- A single Journey consisting of Legs.
- Journeys
Query - Query Journey.
- Journeys
Refresh Query - Refresh a Journey.
- Journeys
Result - The result of a JourneysQuery holding Journeys and data to get earlier/later results.
- Leg
- A single mode of transport used by a Journey.
- Line
- Information on the Leg.
- Location
- A Location of a Station or similar.
- Operator
- The Operator of a Station.
- Price
- The price of a Journey.
- Products
- Products available at a Stop.
- Remark
- Remarks on a Leg.
- Station
- A Station of the API.
- Stations
Query - Query Stations.
- Stop
- A single Stop of a Leg.
- Stopover
- A temporary stop of a Leg.
- Trips
Query - Query Leg.