irail

package
v0.0.0-...-61be857 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	DepartureTime string `json:"departureTime" csv:"departure_time"`
	ArrivalTime   string `json:"arrivalTime" csv:"arrival_time"`
	TrainTypes    string `json:"trainTypes" csv:"train_types"` // string of all taken train types eg "IC IC L"
	ViaText       string `json:"viaText" csv:"via_text"`       // string with instrutction of vias
}

func GetConnection

func GetConnection(from, to, timesel, timeString, dateString string) ([]Connection, error)

GetConnection gets a connection between 2 stations

type Station

type Station struct {
	Name string `json:"name" csv:"name"`
}

func GetStationList

func GetStationList() ([]Station, error)

GetStationList gets all station names listed

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL