Documentation ¶
Index ¶
Constants ¶
View Source
const DateTimeFormat string = "2006-01-02T15:04:05"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BusStopClassification ¶
type CoachStopClassification ¶
type CoachStopClassification struct { }
type Location ¶
type Location struct { GridType string Easting string Northing string Longitude float64 `xml:"Translation>Longitude"` Latitude float64 `xml:"Translation>Latitude"` }
func (*Location) UpdateCoordinates ¶
func (l *Location) UpdateCoordinates()
type MetroStopClassification ¶
type MetroStopClassification struct { }
type NaPTAN ¶
type NaPTAN struct { CreationDateTime string `xml:",attr"` ModificationDateTime string `xml:",attr"` SchemaVersion string `xml:",attr"` StopPoints []*StopPoint StopAreas []*StopArea }
type RailStopClassification ¶
type StopArea ¶
type StopClassification ¶
type StopClassification struct { StopType string OnStreet struct { Bus *BusStopClassification } OffStreet struct { Bus *BusStopClassification Rail *RailStopClassification Coach *CoachStopClassification Metro *MetroStopClassification } }
type StopPoint ¶
type StopPoint struct { CreationDateTime string `xml:",attr"` ModificationDateTime string `xml:",attr"` Status string `xml:",attr"` AtcoCode string NaptanCode string AdministrativeAreaRef string Descriptor *StopPointDescriptor NptgLocalityRef string `xml:"Place>NptgLocalityRef"` LocalityCentre bool `xml:"Place>LocalityCentre"` Location *Location `xml:"Place>Location"` StopClassification StopClassification StopAreas []StopPointStopAreaRef `xml:"StopAreas>StopAreaRef"` }
type StopPointDescriptor ¶
Click to show internal directories.
Click to hide internal directories.