travelinenoc

package
v0.0.0-...-73876c2 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GroupsRecord

type GroupsRecord struct {
	GroupID   string `xml:"GpId"`
	GroupName string `xml:"GpNme"`
}

type ManagementDivisionsRecord

type ManagementDivisionsRecord struct {
	ManagementDivisionID   string `xml:"ManDivId"`
	ManagementDivisionName string `xml:"ManDivNm"`
	GroupID                string `xml:"GpId"`
}

type NOCLinesRecord

type NOCLinesRecord struct {
	NOCCode       string `xml:"NOCCODE"`
	PublicName    string `xml:"PubNm"`
	ReferenceName string `xml:"RefNm"`
	Licence       string
	Mode          string
	EBSRAgent     string

	London          string `xml:"LO"`
	SouthWest       string `xml:"SW"`
	WestMidlands    string `xml:"WM"`
	Wales           string `xml:"WA"`
	Yorkshire       string `xml:"YO"`
	NorthWest       string `xml:"NW"`
	NorthEast       string `xml:"NE"`
	Scotland        string `xml:"SC"`
	SouthEast       string `xml:"SE"`
	EastAnglia      string `xml:"EA"`
	EastMidlands    string `xml:"EM"`
	NorthernIreland string `xml:"NI"`
}

type NOCTableRecord

type NOCTableRecord struct {
	NOCCode            string `xml:"NOCCODE"`
	OperatorPublicName string
	VOSAPSVLicenseName string `xml:"VOSA_PSVLicenseName"`
	OperatorID         string `xml:"OpId"`
	PublicNameID       string `xml:"PubNmId"`
}

type OperatorsRecord

type OperatorsRecord struct {
	OperatorID           string `xml:"OpId"`
	OperatorName         string `xml:"OpNm"`
	ManagementDivisionID string `xml:"ManDivId"`
}

type PublicNameRecord

type PublicNameRecord struct {
	PublicNameID       string `xml:"PubNmId"`
	OperatorPublicName string
	PublicNameQual     string `xml:"PubNmQual"`
	TTRteEnq           string
	FareEnq            string
	LostPropEnq        string
	DisruptEnq         string
	ComplEnq           string
	Twitter            string
	Facebook           string
	LinkedIn           string
	YouTube            string
	Website            string
}

type TravelineData

type TravelineData struct {
	GenerationDate             string `xml:",attr"`
	NOCLinesRecords            []NOCLinesRecord
	NOCTableRecords            []NOCTableRecord
	OperatorsRecords           []OperatorsRecord
	GroupsRecords              []GroupsRecord
	ManagementDivisionsRecords []ManagementDivisionsRecord
	PublicNameRecords          []PublicNameRecord
}

func (*TravelineData) Import

func (t *TravelineData) Import(dataset datasets.DataSet, datasource *ctdf.DataSource) error

func (*TravelineData) ParseFile

func (t *TravelineData) ParseFile(reader io.Reader) error

Jump to

Keyboard shortcuts

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