Documentation
¶
Overview ¶
Package api provides HTTP client functions for the Swiss public transport API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchConnections ¶
func FetchConnections(from, to, date, timeStr string, isArrivalTime bool, limit int) ([]model.Connection, error)
FetchConnections queries the transport API for connections between two stations.
func FetchLocations ¶
FetchLocations returns station name suggestions matching the given query.
Types ¶
This section is empty.