Crate kvvliveapi [] [src]

Bindings for the live data API of the "Karlsruher Verkehrsverbund (KVV)"

Structs

Departure

A single departure containing information about time, platform, and the train

Departures

Answer to a query for departures. Contains stop name, timestamp, and all departures.

Stop

Information about a tram station

Functions

departures_by_route

Get next departures for a given stop and route (up to 10)

departures_by_route_with_max

Get next departures for a given stop and route up to a maximum of max_info entries (may be less)

departures_by_stop

Get next departures for a stop

departures_by_stop_with_max

Get next departures for a stop up to a maximum of max_info entries (may be less)

format_departure_time
search_by_latlon

Search stops in the vicinity of a position given as latitude and longitude

search_by_name

Search stops by their name

search_by_stop_id

Get a stop by its id. Returns None if the given stop id does not exist.