Documentation ¶
Index ¶
Constants ¶
View Source
const ( ModeTheoretical = "T" ModeRealTime = "R" )
Different mode returned by SNCF API for a station
View Source
const ( StateTrainDelayed = "Retardé" StateTrainDeleted = "Supprimé" )
Different state returned by SNCF API for one passage
Variables ¶
View Source
var (
// API is client for request to SNCF API
API *api
)
Functions ¶
Types ¶
type Passage ¶
type Passage struct { XMLName xml.Name `xml:"train"` Date struct { XMLName xml.Name `xml:"date"` Mode string `xml:"mode,attr"` String string `xml:",innerxml"` } TrainID string `xml:"num"` Mission string `xml:"miss"` TerminusID string `xml:"term"` State string `xml:"etat"` }
Passage represent response from SNCF API
Click to show internal directories.
Click to hide internal directories.