Documentation
¶
Index ¶
Constants ¶
View Source
const ( BucketStations = "stations" BucketStatuses = "statuses" BucketStatistics = "statistics" )
Variables ¶
View Source
var ( // UnknownStates lists unknown elevator states that may be ignored. UnknownStates = map[string]bool{ "Inconnu ce jour": true, "Information non disponible": true} )
Functions ¶
func GetDatabase ¶
func LastKeyOfBucket ¶
Types ¶
type Coordinates ¶
type Elevator ¶
type Elevator struct { ID string `json:"id"` Situation string `json:"situation"` Direction string `json:"direction"` Status *Status `json:"status"` // contains filtered or unexported fields }
func (*Elevator) GetLastStatus ¶
func (*Elevator) GetStation ¶
type ElevatorState ¶
type Line ¶
type Line struct { Network string `json:"network"` ID string `json:"id"` LastUpdate time.Time `json:"lastupdate"` // contains filtered or unexported fields }
func (*Line) BadStations ¶
func (*Line) GetStations ¶
func (*Line) GoodStations ¶
type Station ¶
type Station struct { DisplayName string `json:"displayname"` Name string `json:"name"` City string `json:"city"` Position Coordinates `json:"position"` OsmID string `json:"osmid"` Lines []*Line `json:"lines"` Elevators []*Elevator `json:"elevators"` Code string `json:"code"` HasElevators bool `json:"haselevators"` LastUpdate time.Time `json:"lastupdate"` }
func NewRampStation ¶
func NewStation ¶
func (*Station) AttachLine ¶
func (*Station) GetElevators ¶
func (*Station) LastElevatorUpdate ¶
func (*Station) NewElevator ¶
Click to show internal directories.
Click to hide internal directories.