Documentation
¶
Overview ¶
Package api wraps the search.ch timetable HTTP endpoints.
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 returns up to `limit` connections between two stations. date is expected as YYYY-MM-DD and timeStr as HH:MM.
func FetchLocations ¶
FetchLocations returns station name suggestions matching query.
Types ¶
This section is empty.