Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDataFromUri ¶
Types ¶
type BSA ¶
type Count ¶
type Count struct { Uri string `xml:"uri"` Date string `xml:"date"` Time string `xml:"time"` NumTrains int `xml:"traincount"` Message }
func GetActiveTrainCount ¶
type Elevator ¶
type Elevator struct { Uri string `xml:"uri"` Date string `xml:"date"` Time string `xml:"time"` Posted string `xml:"bsa>posted"` Description string `xml:"bsa>description"` Message }
func GetElevatorStatus ¶
type Root ¶
func GetStations ¶
type Route ¶
type Route struct { Name string `xml:"name"` Abbr string `xml:"abbr"` RouteID string `xml:"routeID"` Number int `xml:"number"` Origin string `xml:"origin"` Color string `xml:"color"` Direction string `xml:"direction"` Holidays int `xml:"holidays"` NumStations int `xml:"num_stns"` Stns []string `xml:"config>station"` }
func GetRouteInfo ¶
type RouteInfoRoot ¶
type RoutesRoot ¶
type Station ¶
type Station struct { Name string `xml:"name"` Abbr string `xml:"abbr"` Latitude float64 `xml:"gtfs_latitude"` Longitude float64 `xml:"gtfs_longitude"` Address string `xml:"address"` City string `xml:"city"` County string `xml:"county"` State string `xml:"state"` Zip int `xml:"zipcode"` StationInfo StationAccess }
type StationAccess ¶
type StationAccess struct { Entering string `xml:"entering"` Exiting string `xml:"exiting"` Parking string `xml:"parking"` FillTime string `xml:"fill_time"` Lockers string `xml:"lockers"` Destinations string `xml:"destinations"` TransitInfo string `xml:"transit_info"` }
func GetStationAccessInfo ¶
func GetStationAccessInfo(stationCode string) (*StationAccess, error)
type StationInfo ¶
type StationInfo struct { NorthRoutes []string `xml:"north_routes>route"` SouthRoutes []string `xml:"south_routes>route"` NorthPlatforms []string `xml:"north_platforms>platform"` SouthPlatforms []string `xml:"south_platforms>platform"` PlatformInfo string `xml:"platform_info"` Intro string `xml:"intro"` CrossStreet string `xml:"cross_street"` Food string `xml:"food"` Shopping string `xml:"shopping"` Attractions string `xml:"attraction"` Link string `xml:"link"` }
func GetStationInfo ¶
func GetStationInfo(stationCode string) (*StationInfo, error)
Click to show internal directories.
Click to hide internal directories.