models

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PTXServiceDTOBusSpecificationV2BusA1Data added in v0.7.0

type PTXServiceDTOBusSpecificationV2BusA1Data struct {

	// 方位角
	Azimuth float64 `json:"Azimuth,omitempty"`

	// PointType
	//
	// 車輛位置經度
	BusPosition struct {
		PTXServiceDTOSharedSpecificationV2BasePointType
	} `json:"BusPosition,omitempty" xml:"PointType,omitempty"`

	// Int32
	//
	// 行車狀況 : [0:'正常',1:'車禍',2:'故障',3:'塞車',4:'緊急求援',5:'加油',90:'不明',91:'去回不明',98:'偏移路線',99:'非營運狀態',100:'客滿',101:'包車出租',255:'未知']
	BusStatus int64 `json:"BusStatus,omitempty"`

	// Int32
	//
	// 去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']
	Direction int64 `json:"Direction,omitempty"`

	// Int32
	//
	// 勤務狀態 : [0:'正常',1:'開始',2:'結束']
	DutyStatus int64 `json:"DutyStatus,omitempty"`

	// DateTime
	//
	// 車機時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
	// Required: true
	// Format: date-time
	GPSTime *strfmt.DateTime `json:"GPSTime"`

	// Int32
	//
	// 資料型態種類 : [0:'未知',1:'定期',2:'非定期']
	MessageType int64 `json:"MessageType,omitempty"`

	// String
	//
	// 營運業者代碼
	OperatorID string `json:"OperatorID,omitempty" xml:"String,omitempty"`

	// String
	//
	// 車牌號碼
	// Required: true
	PlateNumb *string `json:"PlateNumb" xml:"String"`

	// String
	//
	// 地區既用中之路線代碼(為原資料內碼)
	RouteID string `json:"RouteID,omitempty" xml:"String,omitempty"`

	// NameType
	//
	// 路線名稱
	RouteName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"RouteName,omitempty" xml:"NameType,omitempty"`

	// String
	//
	// 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
	RouteUID string `json:"RouteUID,omitempty" xml:"String,omitempty"`

	// 行駛速度(kph)
	Speed float64 `json:"Speed,omitempty"`

	// 來源端平台接收時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
	// Format: date-time
	SrcRecTime strfmt.DateTime `json:"SrcRecTime,omitempty"`

	// 來源端平台資料傳出時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)[公總使用動態即時推播故有提供此欄位, 而非公總系統因使用整包資料更新, 故沒有提供此欄位]
	// Format: date-time
	SrcTransTime strfmt.DateTime `json:"SrcTransTime,omitempty"`

	// 來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)[公總使用動態即時推播故沒有提供此欄位, 而非公總系統因提供整包資料更新, 故有提供此欄]
	// Format: date-time
	SrcUpdateTime strfmt.DateTime `json:"SrcUpdateTime,omitempty"`

	// String
	//
	// 地區既用中之子路線代碼(為原資料內碼)
	SubRouteID string `json:"SubRouteID,omitempty" xml:"String,omitempty"`

	// NameType
	//
	// 子路線名稱
	SubRouteName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"SubRouteName,omitempty" xml:"NameType,omitempty"`

	// String
	//
	// 子路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
	SubRouteUID string `json:"SubRouteUID,omitempty" xml:"String,omitempty"`

	// 車機資料傳輸時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)[多數單位沒有提供此欄位資訊]
	// Format: date-time
	TransTime strfmt.DateTime `json:"TransTime,omitempty"`

	// DateTime
	//
	// 本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
	// Required: true
	// Format: date-time
	UpdateTime *strfmt.DateTime `json:"UpdateTime"`
}

PTXServiceDTOBusSpecificationV2BusA1Data BusA1Data

定時車機資料型別

swagger:model PTX.Service.DTO.Bus.Specification.V2.BusA1Data

func (*PTXServiceDTOBusSpecificationV2BusA1Data) ContextValidate added in v0.9.0

ContextValidate validate this p t x service d t o bus specification v2 bus a1 data based on the context it is used

func (*PTXServiceDTOBusSpecificationV2BusA1Data) MarshalBinary added in v0.7.0

func (m *PTXServiceDTOBusSpecificationV2BusA1Data) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusA1Data) UnmarshalBinary added in v0.7.0

func (m *PTXServiceDTOBusSpecificationV2BusA1Data) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusA1Data) Validate added in v0.7.0

Validate validates this p t x service d t o bus specification v2 bus a1 data

type PTXServiceDTOBusSpecificationV2BusA2Data added in v0.7.0

type PTXServiceDTOBusSpecificationV2BusA2Data struct {

	// Int32
	//
	// 進站離站 : [0:'離站',1:'進站']
	A2EventType int64 `json:"A2EventType,omitempty"`

	// Int32
	//
	// 行車狀況 : [0:'正常',1:'車禍',2:'故障',3:'塞車',4:'緊急求援',5:'加油',90:'不明',91:'去回不明',98:'偏移路線',99:'非營運狀態',100:'客滿',101:'包車出租',255:'未知']
	BusStatus int64 `json:"BusStatus,omitempty"`

	// Int32
	//
	// 去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']
	// Required: true
	Direction *int64 `json:"Direction"`

	// Int32
	//
	// 勤務狀態 : [0:'正常',1:'開始',2:'結束']
	DutyStatus int64 `json:"DutyStatus,omitempty"`

	// DateTime
	//
	// 車機時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz) [觸發到離站的GPS時間]
	// Required: true
	// Format: date-time
	GPSTime *strfmt.DateTime `json:"GPSTime"`

	// Int32
	//
	// 資料型態種類 : [0:'未知',1:'定期',2:'非定期']
	MessageType int64 `json:"MessageType,omitempty"`

	// String
	//
	// 營運業者代碼
	OperatorID string `json:"OperatorID,omitempty" xml:"String,omitempty"`

	// String
	//
	// 車牌號碼
	// Required: true
	PlateNumb *string `json:"PlateNumb" xml:"String"`

	// String
	//
	// 地區既用中之路線代碼(為原資料內碼)
	RouteID string `json:"RouteID,omitempty" xml:"String,omitempty"`

	// NameType
	//
	// 路線名
	RouteName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"RouteName,omitempty" xml:"NameType,omitempty"`

	// String
	//
	// 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
	RouteUID string `json:"RouteUID,omitempty" xml:"String,omitempty"`

	// 來源端平台接收時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
	// Format: date-time
	SrcRecTime strfmt.DateTime `json:"SrcRecTime,omitempty"`

	// 來源端平台資料傳出時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)[公總使用動態即時推播故有提供此欄位, 而非公總系統因使用整包資料更新, 故沒有提供此欄位]
	// Format: date-time
	SrcTransTime strfmt.DateTime `json:"SrcTransTime,omitempty"`

	// 來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)[公總使用動態即時推播故沒有提供此欄位, 而非公總系統因提供整包資料更新, 故有提供此欄]
	// Format: date-time
	SrcUpdateTime strfmt.DateTime `json:"SrcUpdateTime,omitempty"`

	// String
	//
	// 地區既用中之站牌代號(為原資料內碼)
	StopID string `json:"StopID,omitempty" xml:"String,omitempty"`

	// NameType
	//
	// 站牌名
	StopName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"StopName,omitempty" xml:"NameType,omitempty"`

	// Int32
	//
	// 路線經過站牌之順序
	StopSequence int32 `json:"StopSequence,omitempty"`

	// String
	//
	// 站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
	StopUID string `json:"StopUID,omitempty" xml:"String,omitempty"`

	// String
	//
	// 地區既用中之子路線代碼(為原資料內碼)
	SubRouteID string `json:"SubRouteID,omitempty" xml:"String,omitempty"`

	// NameType
	//
	// 子路線名稱
	SubRouteName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"SubRouteName,omitempty" xml:"NameType,omitempty"`

	// String
	//
	// 子路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
	SubRouteUID string `json:"SubRouteUID,omitempty" xml:"String,omitempty"`

	// 車機資料傳輸時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)[多數單位沒有提供此欄位資訊]
	// Format: date-time
	TransTime strfmt.DateTime `json:"TransTime,omitempty"`

	// DateTime
	//
	// 本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
	// Required: true
	// Format: date-time
	UpdateTime *strfmt.DateTime `json:"UpdateTime"`
}

PTXServiceDTOBusSpecificationV2BusA2Data BusA2Data

定點車機資料型別

swagger:model PTX.Service.DTO.Bus.Specification.V2.BusA2Data

func (*PTXServiceDTOBusSpecificationV2BusA2Data) ContextValidate added in v0.9.0

ContextValidate validate this p t x service d t o bus specification v2 bus a2 data based on the context it is used

func (*PTXServiceDTOBusSpecificationV2BusA2Data) MarshalBinary added in v0.7.0

func (m *PTXServiceDTOBusSpecificationV2BusA2Data) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusA2Data) UnmarshalBinary added in v0.7.0

func (m *PTXServiceDTOBusSpecificationV2BusA2Data) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusA2Data) Validate added in v0.7.0

Validate validates this p t x service d t o bus specification v2 bus a2 data

type PTXServiceDTOBusSpecificationV2BusAlert added in v0.11.0

type PTXServiceDTOBusSpecificationV2BusAlert struct {

	// String
	//
	// 通阻事件原單位發布代碼
	// Required: true
	AlertID *string `json:"AlertID" xml:"String"`

	// String
	//
	// 詳細描述網站連結
	AlertURL string `json:"AlertURL,omitempty" xml:"String,omitempty"`

	// Int32
	//
	// 原因 : [1:'事故(ACCIDENT)',2:'維護檢修(MAINTENANCE)',3:'技術問題(TECHNICAL_PROBLEM)',4:'施工(CONSTRUCTION)',5:'醫療緊急狀況(MEDICAL_EMERGENCY)',6:'氣候(WEATHER)',7:'示威遊行(DEMONSTRATION)',8:'政治活動/維安(POLICE_ACTIVITY)',9:'假日/節慶(HOLIDAY)',10:'罷工(STRIKE)',11:'活動(Activity)(如:國慶活動/煙火活動/跨年活動/路跑活動/新北耶誕城活動等)',254:'其他(OTHER_CAUSE)',255:'未知原因(UNKNOWN_CAUSE)']
	Cause int64 `json:"Cause,omitempty"`

	// String
	//
	// 發布單位
	// Required: true
	Department *string `json:"Department" xml:"String"`

	// String
	//
	// 事件描述
	// Required: true
	Description *string `json:"Description" xml:"String"`

	// Int32
	//
	// 影響 : [1:'車輛改道/站牌不停靠(DETOUR)',2:'服務(班次)增加(ADDITIONAL_SERVICE)',3:'服務(班次)減少(REDUCED_SERVICE)',4:'服務(班次)取消(NO_SERVICE)',5:'服務(班次)改變(MODIFIED_SERVICE)',6:'站點異動(STOP_MOVED)',7:'重大延遲(SIGNIFICANT_DELAYS)',254:'其他影響(OTHER_EFFECT)',255:'未知影響(UNKNOWN_EFFECT)']
	Effect int64 `json:"Effect,omitempty"`

	// 結束日期時間
	// Required: true
	// Format: date-time
	EndTime *strfmt.DateTime `json:"EndTime"`

	// 消息公告日期時間
	// Format: date-time
	PublishTime strfmt.DateTime `json:"PublishTime,omitempty"`

	// Scope
	//
	// 通阻影響範圍
	// Required: true
	Scope struct {
		PTXServiceDTOBusSpecificationV2Scope
	} `json:"Scope" xml:"Scope"`

	// DateTime
	//
	// [來源端平臺]此筆資料最後更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
	// Format: date-time
	SrcUpdateTime strfmt.DateTime `json:"SrcUpdateTime,omitempty"`

	// 開始日期時間
	// Required: true
	// Format: date-time
	StartTime *strfmt.DateTime `json:"StartTime"`

	// Int32
	//
	// 營運狀況 : [0:'全部營運停止',1:'全部營運正常',2:'有異常狀況']
	Status int64 `json:"Status,omitempty"`

	// String
	//
	// 通阻標題
	// Required: true
	Title *string `json:"Title" xml:"String"`

	// DateTime
	//
	// 本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
	// Format: date-time
	UpdateTime strfmt.DateTime `json:"UpdateTime,omitempty"`
}

PTXServiceDTOBusSpecificationV2BusAlert BusAlert

swagger:model PTX.Service.DTO.Bus.Specification.V2.BusAlert

func (*PTXServiceDTOBusSpecificationV2BusAlert) ContextValidate added in v0.11.0

ContextValidate validate this p t x service d t o bus specification v2 bus alert based on the context it is used

func (*PTXServiceDTOBusSpecificationV2BusAlert) MarshalBinary added in v0.11.0

func (m *PTXServiceDTOBusSpecificationV2BusAlert) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusAlert) UnmarshalBinary added in v0.11.0

func (m *PTXServiceDTOBusSpecificationV2BusAlert) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusAlert) Validate added in v0.11.0

Validate validates this p t x service d t o bus specification v2 bus alert

type PTXServiceDTOBusSpecificationV2BusDailyStopTimeTable added in v0.12.0

type PTXServiceDTOBusSpecificationV2BusDailyStopTimeTable struct {

	// DateTime
	//
	// 適用日期
	// Required: true
	// Format: date-time
	BusDate *strfmt.DateTime `json:"BusDate"`

	// String
	//
	// 迄點站站牌代碼,機關定義站牌代號(為原資料內碼)
	// Required: true
	DestinationStopID *string `json:"DestinationStopID" xml:"String"`

	// NameType
	//
	// 迄點站站牌名稱
	DestinationStopName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"DestinationStopName,omitempty" xml:"NameType,omitempty"`

	// String
	//
	// 營運業者簡碼
	// Required: true
	OperatorCode *string `json:"OperatorCode" xml:"String"`

	// String
	//
	// 營運業者代碼
	// Required: true
	OperatorID *string `json:"OperatorID" xml:"String"`

	// String
	//
	// 地區既用中之路線代碼(為原資料內碼)
	// Required: true
	RouteID *string `json:"RouteID" xml:"String"`

	// NameType
	//
	// 路線名稱
	// Required: true
	RouteName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"RouteName" xml:"NameType"`

	// String
	//
	// 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
	// Required: true
	RouteUID *string `json:"RouteUID" xml:"String"`

	// Array
	//
	// 公車站牌停靠資料
	// Required: true
	Stops []*PTXServiceDTOBusSpecificationV2BusDailyStopTimeTableStop "json:\"Stops\" xml:\"List`1\""

	// String
	//
	// 地區既用中之附屬路線代碼(為原資料內碼)
	// Required: true
	SubRouteID *string `json:"SubRouteID" xml:"String"`

	// NameType
	//
	// 附屬路線名稱
	SubRouteName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"SubRouteName,omitempty" xml:"NameType,omitempty"`

	// String
	//
	// 附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
	// Required: true
	SubRouteUID *string `json:"SubRouteUID" xml:"String"`

	// DateTime
	//
	// 資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
	// Required: true
	// Format: date-time
	UpdateTime *strfmt.DateTime `json:"UpdateTime"`
}

PTXServiceDTOBusSpecificationV2BusDailyStopTimeTable BusDailyStopTimeTable

swagger:model PTX.Service.DTO.Bus.Specification.V2.BusDailyStopTimeTable

func (*PTXServiceDTOBusSpecificationV2BusDailyStopTimeTable) ContextValidate added in v0.12.0

ContextValidate validate this p t x service d t o bus specification v2 bus daily stop time table based on the context it is used

func (*PTXServiceDTOBusSpecificationV2BusDailyStopTimeTable) MarshalBinary added in v0.12.0

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusDailyStopTimeTable) UnmarshalBinary added in v0.12.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusDailyStopTimeTable) Validate added in v0.12.0

Validate validates this p t x service d t o bus specification v2 bus daily stop time table

type PTXServiceDTOBusSpecificationV2BusDailyStopTimeTableStop added in v0.12.0

type PTXServiceDTOBusSpecificationV2BusDailyStopTimeTableStop struct {

	// String
	//
	// 地區既用中之站牌代碼(為原資料內碼)
	// Required: true
	StopID *string `json:"StopID" xml:"String"`

	// NameType
	//
	// 站牌名稱
	StopName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"StopName,omitempty" xml:"NameType,omitempty"`

	// String
	//
	// 站牌唯一識別代碼,規則為 {業管機關代碼} + {StopID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢
	// Required: true
	StopUID *string `json:"StopUID" xml:"String"`

	// Array
	//
	// 預定班表
	TimeTables []*PTXServiceDTOBusSpecificationV2BusDailyStopTimeTableTimeTable "json:\"TimeTables\" xml:\"List`1\""
}

PTXServiceDTOBusSpecificationV2BusDailyStopTimeTableStop Stop

swagger:model PTX.Service.DTO.Bus.Specification.V2.BusDailyStopTimeTable+Stop

func (*PTXServiceDTOBusSpecificationV2BusDailyStopTimeTableStop) ContextValidate added in v0.12.0

ContextValidate validate this p t x service d t o bus specification v2 bus daily stop time table stop based on the context it is used

func (*PTXServiceDTOBusSpecificationV2BusDailyStopTimeTableStop) MarshalBinary added in v0.12.0

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusDailyStopTimeTableStop) UnmarshalBinary added in v0.12.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusDailyStopTimeTableStop) Validate added in v0.12.0

Validate validates this p t x service d t o bus specification v2 bus daily stop time table stop

type PTXServiceDTOBusSpecificationV2BusDailyStopTimeTableTimeTable added in v0.12.0

type PTXServiceDTOBusSpecificationV2BusDailyStopTimeTableTimeTable struct {

	// String
	//
	// 到站時間,格式為:HH:mm
	// Required: true
	ArrivalTime *string `json:"ArrivalTime" xml:"String"`

	// String
	//
	// 離站時間,格式為:HH:mm
	// Required: true
	DepartureTime *string `json:"DepartureTime" xml:"String"`

	// 該路線班次是否使用低地板公車車輛 , 0 = 否 , 1 = 是
	IsLowFloor bool `json:"IsLowFloor,omitempty"`

	// Int32
	//
	// 發車順序(由1開始)
	// Required: true
	Sequence *int32 `json:"Sequence"`

	// Int32
	//
	// 時刻表時間類型 : [0:'估算時間',1:'表訂時間']
	// Required: true
	TimeType *int64 `json:"TimeType"`

	// String
	//
	// 班次代碼
	TripID string `json:"TripID,omitempty" xml:"String,omitempty"`
}

PTXServiceDTOBusSpecificationV2BusDailyStopTimeTableTimeTable TimeTable

swagger:model PTX.Service.DTO.Bus.Specification.V2.BusDailyStopTimeTable+TimeTable

func (*PTXServiceDTOBusSpecificationV2BusDailyStopTimeTableTimeTable) ContextValidate added in v0.12.0

ContextValidate validates this p t x service d t o bus specification v2 bus daily stop time table time table based on context it is used

func (*PTXServiceDTOBusSpecificationV2BusDailyStopTimeTableTimeTable) MarshalBinary added in v0.12.0

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusDailyStopTimeTableTimeTable) UnmarshalBinary added in v0.12.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusDailyStopTimeTableTimeTable) Validate added in v0.12.0

Validate validates this p t x service d t o bus specification v2 bus daily stop time table time table

type PTXServiceDTOBusSpecificationV2BusDailyTimeTable added in v0.12.0

type PTXServiceDTOBusSpecificationV2BusDailyTimeTable struct {

	// DateTime
	//
	// 適用日期
	// Required: true
	// Format: date-time
	BusDate *strfmt.DateTime `json:"BusDate"`

	// Int32
	//
	// 去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']
	// Required: true
	Direction *int64 `json:"Direction"`

	// String
	//
	// 營運業者簡碼
	// Required: true
	OperatorCode *string `json:"OperatorCode" xml:"String"`

	// String
	//
	// 營運業者代碼
	// Required: true
	OperatorID *string `json:"OperatorID" xml:"String"`

	// String
	//
	// 地區既用中之路線代碼(為原資料內碼)
	// Required: true
	RouteID *string `json:"RouteID" xml:"String"`

	// NameType
	//
	// 路線名稱
	// Required: true
	RouteName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"RouteName" xml:"NameType"`

	// String
	//
	// 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
	// Required: true
	RouteUID *string `json:"RouteUID" xml:"String"`

	// String
	//
	// 地區既用中之附屬路線代碼(為原資料內碼)
	// Required: true
	SubRouteID *string `json:"SubRouteID" xml:"String"`

	// NameType
	//
	// 附屬路線名稱
	SubRouteName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"SubRouteName,omitempty" xml:"NameType,omitempty"`

	// String
	//
	// 附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
	SubRouteUID string `json:"SubRouteUID,omitempty" xml:"String,omitempty"`

	// Array
	//
	// 預定班表
	Timetables []*PTXServiceDTOBusSpecificationV2BusDailyTimeTableTimeTable "json:\"Timetables\" xml:\"List`1\""

	// DateTime
	//
	// 資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
	// Required: true
	// Format: date-time
	UpdateTime *strfmt.DateTime `json:"UpdateTime"`
}

PTXServiceDTOBusSpecificationV2BusDailyTimeTable BusDailyTimeTable

swagger:model PTX.Service.DTO.Bus.Specification.V2.BusDailyTimeTable

func (*PTXServiceDTOBusSpecificationV2BusDailyTimeTable) ContextValidate added in v0.12.0

ContextValidate validate this p t x service d t o bus specification v2 bus daily time table based on the context it is used

func (*PTXServiceDTOBusSpecificationV2BusDailyTimeTable) MarshalBinary added in v0.12.0

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusDailyTimeTable) UnmarshalBinary added in v0.12.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusDailyTimeTable) Validate added in v0.12.0

Validate validates this p t x service d t o bus specification v2 bus daily time table

type PTXServiceDTOBusSpecificationV2BusDailyTimeTableStopTime added in v0.12.0

type PTXServiceDTOBusSpecificationV2BusDailyTimeTableStopTime struct {

	// String
	//
	// 到站時間,格式為:HH:mm
	// Required: true
	ArrivalTime *string `json:"ArrivalTime" xml:"String"`

	// String
	//
	// 離站時間,格式為:HH:mm
	// Required: true
	DepartureTime *string `json:"DepartureTime" xml:"String"`

	// String
	//
	// 地區既用中之站牌代碼(為原資料內碼)
	// Required: true
	StopID *string `json:"StopID" xml:"String"`

	// NameType
	//
	// 站牌名稱
	StopName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"StopName,omitempty" xml:"NameType,omitempty"`

	// Int32
	//
	// 路線經過站牌之順序(由1開始)
	// Required: true
	StopSequence *int32 `json:"StopSequence"`

	// String
	//
	// 站牌唯一識別代碼,規則為 {業管機關代碼} + {StopID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢
	// Required: true
	StopUID *string `json:"StopUID" xml:"String"`

	// Int32
	//
	// 時刻表時間類型 : [0:'估算時間',1:'表訂時間']
	// Required: true
	TimeType *int64 `json:"TimeType"`
}

PTXServiceDTOBusSpecificationV2BusDailyTimeTableStopTime StopTime

swagger:model PTX.Service.DTO.Bus.Specification.V2.BusDailyTimeTable+StopTime

func (*PTXServiceDTOBusSpecificationV2BusDailyTimeTableStopTime) ContextValidate added in v0.12.0

ContextValidate validate this p t x service d t o bus specification v2 bus daily time table stop time based on the context it is used

func (*PTXServiceDTOBusSpecificationV2BusDailyTimeTableStopTime) MarshalBinary added in v0.12.0

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusDailyTimeTableStopTime) UnmarshalBinary added in v0.12.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusDailyTimeTableStopTime) Validate added in v0.12.0

Validate validates this p t x service d t o bus specification v2 bus daily time table stop time

type PTXServiceDTOBusSpecificationV2BusDailyTimeTableTimeTable added in v0.12.0

type PTXServiceDTOBusSpecificationV2BusDailyTimeTableTimeTable struct {

	// Array
	//
	// 公車停靠時間資料
	// Required: true
	StopTimes []*PTXServiceDTOBusSpecificationV2BusDailyTimeTableStopTime "json:\"StopTimes\" xml:\"List`1\""

	// String
	//
	// 班次代碼
	TripID string `json:"TripID,omitempty" xml:"String,omitempty"`
}

PTXServiceDTOBusSpecificationV2BusDailyTimeTableTimeTable TimeTable

swagger:model PTX.Service.DTO.Bus.Specification.V2.BusDailyTimeTable+TimeTable

func (*PTXServiceDTOBusSpecificationV2BusDailyTimeTableTimeTable) ContextValidate added in v0.12.0

ContextValidate validate this p t x service d t o bus specification v2 bus daily time table time table based on the context it is used

func (*PTXServiceDTOBusSpecificationV2BusDailyTimeTableTimeTable) MarshalBinary added in v0.12.0

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusDailyTimeTableTimeTable) UnmarshalBinary added in v0.12.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusDailyTimeTableTimeTable) Validate added in v0.12.0

Validate validates this p t x service d t o bus specification v2 bus daily time table time table

type PTXServiceDTOBusSpecificationV2BusDiscountPeriods added in v0.7.0

type PTXServiceDTOBusSpecificationV2BusDiscountPeriods struct {

	// String
	//
	// 結束時間(HH:mm制)
	// Required: true
	EndTime *string `json:"EndTime" xml:"String"`

	// ServiceDay
	//
	// 營運日型態
	// Required: true
	ServiceDay struct {
		PTXServiceDTOBusSpecificationV2EmbeddedServiceDay
	} `json:"ServiceDay" xml:"ServiceDay"`

	// String
	//
	// 開始時間(HH:mm制)
	// Required: true
	StartTime *string `json:"StartTime" xml:"String"`
}

PTXServiceDTOBusSpecificationV2BusDiscountPeriods BusDiscountPeriods

優惠時段

swagger:model PTX.Service.DTO.Bus.Specification.V2.BusDiscountPeriods

func (*PTXServiceDTOBusSpecificationV2BusDiscountPeriods) ContextValidate added in v0.9.0

ContextValidate validate this p t x service d t o bus specification v2 bus discount periods based on the context it is used

func (*PTXServiceDTOBusSpecificationV2BusDiscountPeriods) MarshalBinary added in v0.7.0

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusDiscountPeriods) UnmarshalBinary added in v0.7.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusDiscountPeriods) Validate added in v0.7.0

Validate validates this p t x service d t o bus specification v2 bus discount periods

type PTXServiceDTOBusSpecificationV2BusDisplayStopOfRoute added in v0.7.0

type PTXServiceDTOBusSpecificationV2BusDisplayStopOfRoute struct {

	// Int32
	//
	// 去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']
	Direction int64 `json:"Direction,omitempty"`

	// String
	//
	// 地區既用中之路線代碼(為原資料內碼)
	// Required: true
	RouteID *string `json:"RouteID" xml:"String"`

	// NameType
	//
	// 路線名稱
	// Required: true
	RouteName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"RouteName" xml:"NameType"`

	// String
	//
	// 路線唯一識別代碼,規則為 {業管機關代碼} + {RouteID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢
	// Required: true
	RouteUID *string `json:"RouteUID" xml:"String"`

	// Array
	//
	// 所有經過站牌
	// Required: true
	Stops []*PTXServiceDTOBusSpecificationV2EmbeddedStop "json:\"Stops\" xml:\"List`1\""

	// DateTime
	//
	// 資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
	// Required: true
	// Format: date-time
	UpdateTime *strfmt.DateTime `json:"UpdateTime"`

	// Int32
	//
	// 資料版本編號
	// Required: true
	VersionID *int32 `json:"VersionID"`
}

PTXServiceDTOBusSpecificationV2BusDisplayStopOfRoute BusDisplayStopOfRoute

顯示用路線站序資料

swagger:model PTX.Service.DTO.Bus.Specification.V2.BusDisplayStopOfRoute

func (*PTXServiceDTOBusSpecificationV2BusDisplayStopOfRoute) ContextValidate added in v0.9.0

ContextValidate validate this p t x service d t o bus specification v2 bus display stop of route based on the context it is used

func (*PTXServiceDTOBusSpecificationV2BusDisplayStopOfRoute) MarshalBinary added in v0.7.0

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusDisplayStopOfRoute) UnmarshalBinary added in v0.7.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusDisplayStopOfRoute) Validate added in v0.7.0

Validate validates this p t x service d t o bus specification v2 bus display stop of route

type PTXServiceDTOBusSpecificationV2BusFare added in v0.7.0

type PTXServiceDTOBusSpecificationV2BusFare struct {

	// Array
	//
	// 優惠時段
	DiscountPeriods []*PTXServiceDTOBusSpecificationV2BusDiscountPeriods "json:\"DiscountPeriods\" xml:\"List`1\""

	// Int32
	//
	// 費率等級 : [1:'成人',2:'學生',3:'孩童',4:'敬老',5:'愛心',6:'愛心孩童',7:'愛心優待或愛心陪伴',8:'團體',9:'軍警',10:'由各運業者自行定義的半票']
	// Required: true
	FareClass *int64 `json:"FareClass"`

	// String
	//
	// 票價名稱
	FareName string `json:"FareName,omitempty" xml:"String,omitempty"`

	// Int32
	//
	// 計費價格(新台幣),其中-1表示不提供售票服務
	// Required: true
	Price *int32 `json:"Price"`

	// Int32
	//
	// 票種類型 : [1:'一般票',2:'來回票',3:'電子票證',4:'回數票',5:'定期票30天期',6:'定期票60天期',7:'早鳥票',8:'定期票90天期']
	// Required: true
	TicketType *int64 `json:"TicketType"`
}

PTXServiceDTOBusSpecificationV2BusFare BusFare

票票價種類及費率說明

swagger:model PTX.Service.DTO.Bus.Specification.V2.BusFare

func (*PTXServiceDTOBusSpecificationV2BusFare) ContextValidate added in v0.9.0

ContextValidate validate this p t x service d t o bus specification v2 bus fare based on the context it is used

func (*PTXServiceDTOBusSpecificationV2BusFare) MarshalBinary added in v0.7.0

func (m *PTXServiceDTOBusSpecificationV2BusFare) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusFare) UnmarshalBinary added in v0.7.0

func (m *PTXServiceDTOBusSpecificationV2BusFare) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusFare) Validate added in v0.7.0

Validate validates this p t x service d t o bus specification v2 bus fare

type PTXServiceDTOBusSpecificationV2BusFirstLastTripInfo added in v0.7.0

type PTXServiceDTOBusSpecificationV2BusFirstLastTripInfo struct {

	// Int32
	//
	// 去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']
	// Required: true
	Direction *int64 `json:"Direction"`

	// Array
	//
	// 首末班車
	// Required: true
	FirstLastTrips []*PTXServiceDTOBusSpecificationV2FirstLastTrip "json:\"FirstLastTrips\" xml:\"List`1\""

	// String
	//
	// 營運業者代碼
	// Required: true
	OperatorID *string `json:"OperatorID" xml:"String"`

	// String
	//
	// 地區既用中之路線代碼(為原資料內碼)
	// Required: true
	RouteID *string `json:"RouteID" xml:"String"`

	// NameType
	//
	// 路線名稱
	// Required: true
	RouteName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"RouteName" xml:"NameType"`

	// String
	//
	// 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
	// Required: true
	RouteUID *string `json:"RouteUID" xml:"String"`

	// String
	//
	// 地區既用中之附屬路線代碼(為原資料內碼)
	// Required: true
	SubRouteID *string `json:"SubRouteID" xml:"String"`

	// NameType
	//
	// 附屬路線名稱
	// Required: true
	SubRouteName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"SubRouteName" xml:"NameType"`

	// String
	//
	// 附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
	// Required: true
	SubRouteUID *string `json:"SubRouteUID" xml:"String"`

	// DateTime
	//
	// 資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
	// Required: true
	// Format: date-time
	UpdateTime *strfmt.DateTime `json:"UpdateTime"`

	// Int32
	//
	// 資料版本編號
	// Required: true
	VersionID *int32 `json:"VersionID"`
}

PTXServiceDTOBusSpecificationV2BusFirstLastTripInfo BusFirstLastTripInfo

路線首末班車資料型別

swagger:model PTX.Service.DTO.Bus.Specification.V2.BusFirstLastTripInfo

func (*PTXServiceDTOBusSpecificationV2BusFirstLastTripInfo) ContextValidate added in v0.9.0

ContextValidate validate this p t x service d t o bus specification v2 bus first last trip info based on the context it is used

func (*PTXServiceDTOBusSpecificationV2BusFirstLastTripInfo) MarshalBinary added in v0.7.0

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusFirstLastTripInfo) UnmarshalBinary added in v0.7.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusFirstLastTripInfo) Validate added in v0.7.0

Validate validates this p t x service d t o bus specification v2 bus first last trip info

type PTXServiceDTOBusSpecificationV2BusFirstLastTripInfoServiceDay added in v0.7.0

type PTXServiceDTOBusSpecificationV2BusFirstLastTripInfoServiceDay struct {

	// Int32
	//
	// 國定假日後一日營運與否 : [0:'否',1:'是']
	DayAfterNationalHoliday int64 `json:"DayAfterNationalHoliday,omitempty"`

	// Int32
	//
	// 國定假日前一日營運與否 : [0:'否',1:'是']
	DayBeforeNationalHoliday int64 `json:"DayBeforeNationalHoliday,omitempty"`

	// Int32
	//
	// 星期五是否營運 : [0:'否',1:'是']
	// Required: true
	Friday *int64 `json:"Friday"`

	// Int32
	//
	// 星期一是否營運 : [0:'否',1:'是']
	// Required: true
	Monday *int64 `json:"Monday"`

	// Int32
	//
	// 國定假日營運與否 : [0:'否',1:'是']
	NationalHolidays int64 `json:"NationalHolidays,omitempty"`

	// Int32
	//
	// 星期六是否營運 : [0:'否',1:'是']
	// Required: true
	Saturday *int64 `json:"Saturday"`

	// Int32
	//
	// 星期日是否營運 : [0:'否',1:'是']
	// Required: true
	Sunday *int64 `json:"Sunday"`

	// Int32
	//
	// 星期四是否營運 : [0:'否',1:'是']
	// Required: true
	Thursday *int64 `json:"Thursday"`

	// Int32
	//
	// 星期二是否營運 : [0:'否',1:'是']
	// Required: true
	Tuesday *int64 `json:"Tuesday"`

	// Int32
	//
	// 颱風停止上班上課期間營運與否 : [0:'否',1:'是']
	TyphoonDay int64 `json:"TyphoonDay,omitempty"`

	// Int32
	//
	// 星期三是否營運 : [0:'否',1:'是']
	// Required: true
	Wednesday *int64 `json:"Wednesday"`
}

PTXServiceDTOBusSpecificationV2BusFirstLastTripInfoServiceDay ServiceDay

swagger:model PTX.Service.DTO.Bus.Specification.V2.BusFirstLastTripInfo+ServiceDay

func (*PTXServiceDTOBusSpecificationV2BusFirstLastTripInfoServiceDay) ContextValidate added in v0.9.0

ContextValidate validates this p t x service d t o bus specification v2 bus first last trip info service day based on context it is used

func (*PTXServiceDTOBusSpecificationV2BusFirstLastTripInfoServiceDay) MarshalBinary added in v0.7.0

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusFirstLastTripInfoServiceDay) UnmarshalBinary added in v0.7.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusFirstLastTripInfoServiceDay) Validate added in v0.7.0

Validate validates this p t x service d t o bus specification v2 bus first last trip info service day

type PTXServiceDTOBusSpecificationV2BusFrequency added in v0.7.0

type PTXServiceDTOBusSpecificationV2BusFrequency struct {

	// String
	//
	// 發車班距結束適用時間,格式為: HH:mm
	// Required: true
	EndTime *string `json:"EndTime" xml:"String"`

	// Int32
	//
	// 最大班距時間(分鐘)
	// Required: true
	MaxHeadwayMins *int32 `json:"MaxHeadwayMins"`

	// Int32
	//
	// 最小班距時間(分鐘)
	// Required: true
	MinHeadwayMins *int32 `json:"MinHeadwayMins"`

	// ServiceDay
	//
	// 週內營運日
	ServiceDay struct {
		PTXServiceDTOBusSpecificationV2EmbeddedServiceDay
	} `json:"ServiceDay,omitempty" xml:"ServiceDay,omitempty"`

	// Array
	//
	// 特殊營運日
	SpecialDays []*PTXServiceDTOBusSpecificationV2SpecialDay "json:\"SpecialDays\" xml:\"List`1\""

	// String
	//
	// 發車班距起始適用時間,格式為: HH:mm
	// Required: true
	StartTime *string `json:"StartTime" xml:"String"`
}

PTXServiceDTOBusSpecificationV2BusFrequency BusFrequency

發車班距資料

swagger:model PTX.Service.DTO.Bus.Specification.V2.BusFrequency

func (*PTXServiceDTOBusSpecificationV2BusFrequency) ContextValidate added in v0.9.0

ContextValidate validate this p t x service d t o bus specification v2 bus frequency based on the context it is used

func (*PTXServiceDTOBusSpecificationV2BusFrequency) MarshalBinary added in v0.7.0

func (m *PTXServiceDTOBusSpecificationV2BusFrequency) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusFrequency) UnmarshalBinary added in v0.7.0

func (m *PTXServiceDTOBusSpecificationV2BusFrequency) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusFrequency) Validate added in v0.7.0

Validate validates this p t x service d t o bus specification v2 bus frequency

type PTXServiceDTOBusSpecificationV2BusN1EstimateTime added in v0.7.0

type PTXServiceDTOBusSpecificationV2BusN1EstimateTime struct {

	// String
	//
	// 車輛目前所在站牌代碼
	CurrentStop string `json:"CurrentStop,omitempty" xml:"String,omitempty"`

	// 系統演算該筆預估到站資料的時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)[目前僅公總提供此欄位資訊]
	// Format: date-time
	DataTime strfmt.DateTime `json:"DataTime,omitempty"`

	// String
	//
	// 車輛目的站牌代碼
	DestinationStop string `json:"DestinationStop,omitempty" xml:"String,omitempty"`

	// Int32
	//
	// 去返程(該方向指的是此車牌車輛目前所在路線的去返程方向,非指站站牌所在路線的去返程方向,使用時請加值業者多加注意) : [0:'去程',1:'返程',2:'迴圈',255:'未知']
	// Required: true
	Direction *int64 `json:"Direction"`

	// 到站時間預估(秒) [當StopStatus値為2~4或PlateNumb値為-1時,EstimateTime値為null; 當StopStatus値為1時, EstimateTime値多數為null,僅部分路線因有固定發車時間,故EstimateTime有値; 當StopStatus値為0時,EstimateTime有値。]
	EstimateTime int32 `json:"EstimateTime,omitempty"`

	// Array
	//
	// 到站時間預估
	// <span class="emphasis fas fa-pen" rel="目前僅桃園市、臺中市、高雄市提供"></span>
	Estimates []*PTXServiceDTOBusSpecificationV2N1Estimate "json:\"Estimates\" xml:\"List`1\""

	// 是否為末班車
	IsLastBus bool `json:"IsLastBus,omitempty"`

	// Int32
	//
	// 資料型態種類 : [0:'未知',1:'定期',2:'非定期']
	MessageType int64 `json:"MessageType,omitempty"`

	// 下一班公車到達時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
	// Format: date-time
	NextBusTime strfmt.DateTime `json:"NextBusTime,omitempty"`

	// String
	//
	// 車牌號碼 [値為値為-1時,表示目前該站位無車輛行駛]
	PlateNumb string `json:"PlateNumb,omitempty" xml:"String,omitempty"`

	// String
	//
	// 地區既用中之路線代碼(為原資料內碼)
	RouteID string `json:"RouteID,omitempty" xml:"String,omitempty"`

	// NameType
	//
	// 路線名稱
	RouteName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"RouteName,omitempty" xml:"NameType,omitempty"`

	// String
	//
	// 路線唯一識別代碼,規則為 {業管機關代碼} + {RouteID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢
	RouteUID string `json:"RouteUID,omitempty" xml:"String,omitempty"`

	// 來源端平台接收時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz))[該欄位在N1資料中無意義]
	// Format: date-time
	SrcRecTime strfmt.DateTime `json:"SrcRecTime,omitempty"`

	// 來源端平台資料傳出時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)[公總使用動態即時推播故有提供此欄位, 而非公總系統因使用整包資料更新, 故沒有提供此欄位]
	// Format: date-time
	SrcTransTime strfmt.DateTime `json:"SrcTransTime,omitempty"`

	// 來源端平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)[公總使用動態即時推播故沒有提供此欄位, 而非公總系統因提供整包資料更新, 故有提供此欄]
	// Format: date-time
	SrcUpdateTime strfmt.DateTime `json:"SrcUpdateTime,omitempty"`

	// 車輛距離本站站數
	StopCountDown int32 `json:"StopCountDown,omitempty"`

	// String
	//
	// 地區既用中之站牌代碼(為原資料內碼)
	StopID string `json:"StopID,omitempty" xml:"String,omitempty"`

	// NameType
	//
	// 站牌名
	StopName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"StopName,omitempty" xml:"NameType,omitempty"`

	// 路線經過站牌之順序
	StopSequence int32 `json:"StopSequence,omitempty"`

	// Int32
	//
	// 車輛狀態備註 : [0:'正常',1:'尚未發車',2:'交管不停靠',3:'末班車已過',4:'今日未營運']
	StopStatus int64 `json:"StopStatus,omitempty"`

	// String
	//
	// 站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
	StopUID string `json:"StopUID,omitempty" xml:"String,omitempty"`

	// String
	//
	// 地區既用中之子路線代碼(為原資料內碼)
	SubRouteID string `json:"SubRouteID,omitempty" xml:"String,omitempty"`

	// NameType
	//
	// 子路線名稱
	SubRouteName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"SubRouteName,omitempty" xml:"NameType,omitempty"`

	// String
	//
	// 子路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
	SubRouteUID string `json:"SubRouteUID,omitempty" xml:"String,omitempty"`

	// 車機資料傳輸時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz))[該欄位在N1資料中無意義]
	// Format: date-time
	TransTime strfmt.DateTime `json:"TransTime,omitempty"`

	// DateTime
	//
	// 本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
	// Required: true
	// Format: date-time
	UpdateTime *strfmt.DateTime `json:"UpdateTime"`
}

PTXServiceDTOBusSpecificationV2BusN1EstimateTime BusN1EstimateTime

swagger:model PTX.Service.DTO.Bus.Specification.V2.BusN1EstimateTime

func (*PTXServiceDTOBusSpecificationV2BusN1EstimateTime) ContextValidate added in v0.9.0

ContextValidate validate this p t x service d t o bus specification v2 bus n1 estimate time based on the context it is used

func (*PTXServiceDTOBusSpecificationV2BusN1EstimateTime) MarshalBinary added in v0.7.0

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusN1EstimateTime) UnmarshalBinary added in v0.7.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusN1EstimateTime) Validate added in v0.7.0

Validate validates this p t x service d t o bus specification v2 bus n1 estimate time

type PTXServiceDTOBusSpecificationV2BusNews added in v0.7.0

type PTXServiceDTOBusSpecificationV2BusNews struct {

	// String
	//
	// 相關網站連結
	AttachmentURL string `json:"AttachmentURL,omitempty" xml:"String,omitempty"`

	// String
	//
	// 聯絡人/單位
	ContactName string `json:"ContactName,omitempty" xml:"String,omitempty"`

	// String
	//
	// 聯絡電話
	ContactPhone string `json:"ContactPhone,omitempty" xml:"String,omitempty"`

	// String
	//
	// 發布單位
	Department string `json:"Department,omitempty" xml:"String,omitempty"`

	// String
	//
	// 內容描述
	// Required: true
	Description *string `json:"Description" xml:"String"`

	// 結束時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
	// Required: true
	// Format: date-time
	EndTime *strfmt.DateTime `json:"EndTime"`

	// String
	//
	// 語系
	// Required: true
	Language *string `json:"Language" xml:"String"`

	// Int32
	//
	// 消息類別 : [1:'最新消息',2:'新聞稿',3:'營運資訊',4:'轉乘資訊',5:'活動訊息',6:'系統公告',7:'通阻資訊',99:'其他']
	NewsCategory int64 `json:"NewsCategory,omitempty"`

	// String
	//
	// 最新消息原單位發布代碼
	// Required: true
	NewsID *string `json:"NewsID" xml:"String"`

	// String
	//
	// 報導網站連結
	NewsURL string `json:"NewsURL,omitempty" xml:"String,omitempty"`

	// DateTime
	//
	// 消息公告日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
	// Required: true
	// Format: date-time
	PublishTime *strfmt.DateTime `json:"PublishTime"`

	// 來源端平台資料更新時間
	// Format: date-time
	SrcUpdateTime strfmt.DateTime `json:"SrcUpdateTime,omitempty"`

	// 開始時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
	// Required: true
	// Format: date-time
	StartTime *strfmt.DateTime `json:"StartTime"`

	// String
	//
	// 消息標題
	// Required: true
	Title *string `json:"Title" xml:"String"`

	// DateTime
	//
	// 本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
	// Required: true
	// Format: date-time
	UpdateTime *strfmt.DateTime `json:"UpdateTime"`
}

PTXServiceDTOBusSpecificationV2BusNews BusNews

公車最新消息資料

swagger:model PTX.Service.DTO.Bus.Specification.V2.BusNews

func (*PTXServiceDTOBusSpecificationV2BusNews) ContextValidate added in v0.9.0

ContextValidate validates this p t x service d t o bus specification v2 bus news based on context it is used

func (*PTXServiceDTOBusSpecificationV2BusNews) MarshalBinary added in v0.7.0

func (m *PTXServiceDTOBusSpecificationV2BusNews) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusNews) UnmarshalBinary added in v0.7.0

func (m *PTXServiceDTOBusSpecificationV2BusNews) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusNews) Validate added in v0.7.0

Validate validates this p t x service d t o bus specification v2 bus news

type PTXServiceDTOBusSpecificationV2BusODFare added in v0.11.0

type PTXServiceDTOBusSpecificationV2BusODFare struct {

	// Stop
	//
	// 計費迄點站牌資訊
	// Required: true
	DestinationStop struct {
		PTXServiceDTOBusSpecificationV2BusRouteFareStop
	} `json:"DestinationStop" xml:"Stop"`

	// Int32
	//
	// 方向性描述 : [0:'去程',1:'返程',2:'迴圈',255:'未知']
	// Required: true
	Direction *int64 `json:"Direction"`

	// Array
	//
	// 票價內容
	// Required: true
	Fares []*PTXServiceDTOBusSpecificationV2BusRouteFareFare "json:\"Fares\" xml:\"List`1\""

	// Stop
	//
	// 計費起點站牌資訊
	// Required: true
	OriginStop struct {
		PTXServiceDTOBusSpecificationV2BusRouteFareStop
	} `json:"OriginStop" xml:"Stop"`
}

PTXServiceDTOBusSpecificationV2BusODFare BusODFare

起迄站間計費

swagger:model PTX.Service.DTO.Bus.Specification.V2.BusODFare

func (*PTXServiceDTOBusSpecificationV2BusODFare) ContextValidate added in v0.11.0

ContextValidate validate this p t x service d t o bus specification v2 bus o d fare based on the context it is used

func (*PTXServiceDTOBusSpecificationV2BusODFare) MarshalBinary added in v0.11.0

func (m *PTXServiceDTOBusSpecificationV2BusODFare) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusODFare) UnmarshalBinary added in v0.11.0

func (m *PTXServiceDTOBusSpecificationV2BusODFare) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusODFare) Validate added in v0.11.0

Validate validates this p t x service d t o bus specification v2 bus o d fare

type PTXServiceDTOBusSpecificationV2BusRoute added in v0.7.0

type PTXServiceDTOBusSpecificationV2BusRoute struct {

	// String
	//
	// 業管機關代碼
	// Required: true
	AuthorityID *string `json:"AuthorityID" xml:"String"`

	// Int32
	//
	// 公車路線類別 : [11:'市區公車',12:'公路客運',13:'國道客運',14:'接駁車']
	// Required: true
	BusRouteType *int64 `json:"BusRouteType"`

	// String
	//
	// 路線權管所屬縣市(相當於市區公車API的City參數)[若為公路/國道客運路線則為空值]
	City string `json:"City,omitempty" xml:"String,omitempty"`

	// String
	//
	// 路線權管所屬縣市之代碼(國際ISO 3166-2 三碼城市代碼)[若為公路/國道客運路線則為空值]
	CityCode string `json:"CityCode,omitempty" xml:"String,omitempty"`

	// String
	//
	// 起站英文名稱
	DepartureStopNameEn string `json:"DepartureStopNameEn,omitempty" xml:"String,omitempty"`

	// String
	//
	// 起站中文名稱
	DepartureStopNameZh string `json:"DepartureStopNameZh,omitempty" xml:"String,omitempty"`

	// String
	//
	// 終點站英文名稱
	DestinationStopNameEn string `json:"DestinationStopNameEn,omitempty" xml:"String,omitempty"`

	// String
	//
	// 終點站中文名稱
	DestinationStopNameZh string `json:"DestinationStopNameZh,omitempty" xml:"String,omitempty"`

	// String
	//
	// 收費緩衝區英文敘述
	FareBufferZoneDescriptionEn string `json:"FareBufferZoneDescriptionEn,omitempty" xml:"String,omitempty"`

	// String
	//
	// 收費緩衝區中文敘述
	FareBufferZoneDescriptionZh string `json:"FareBufferZoneDescriptionZh,omitempty" xml:"String,omitempty"`

	// Boolean
	//
	// 實際上是否有多條附屬路線。(此欄位值與SubRoutes結構並無強烈的絕對關聯。詳細說明請參閱swagger上方的【資料服務使用注意事項】)
	// Required: true
	HasSubRoutes *bool `json:"HasSubRoutes"`

	// Array
	//
	// 營運業者
	// Required: true
	Operators []*PTXServiceDTOBusSpecificationV2EmbeddedRouteOperator "json:\"Operators\" xml:\"List`1\""

	// String
	//
	// 資料提供平台代碼
	// Required: true
	ProviderID *string `json:"ProviderID" xml:"String"`

	// String
	//
	// 地區既用中之路線代碼(為原資料內碼)
	// Required: true
	RouteID *string `json:"RouteID" xml:"String"`

	// String
	//
	// 路線簡圖網址
	RouteMapImageURL string `json:"RouteMapImageUrl,omitempty" xml:"String,omitempty"`

	// NameType
	//
	// 路線名稱
	// Required: true
	RouteName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"RouteName" xml:"NameType"`

	// String
	//
	// 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
	// Required: true
	RouteUID *string `json:"RouteUID" xml:"String"`

	// Array
	//
	// 附屬路線資料(如果原始資料並無提供附屬路線ID,而本平台基於跨來源資料之一致性,會以SubRouteID=RouteID產製一份相對應的附屬路線資料(若有去返程,則會有兩筆))
	SubRoutes []*PTXServiceDTOBusSpecificationV2BusSubRoute "json:\"SubRoutes\" xml:\"List`1\""

	// String
	//
	// 票價英文敘述
	TicketPriceDescriptionEn string `json:"TicketPriceDescriptionEn,omitempty" xml:"String,omitempty"`

	// String
	//
	// 票價中文敘述
	TicketPriceDescriptionZh string `json:"TicketPriceDescriptionZh,omitempty" xml:"String,omitempty"`

	// DateTime
	//
	// 資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
	// Required: true
	// Format: date-time
	UpdateTime *strfmt.DateTime `json:"UpdateTime"`

	// Int32
	//
	// 資料版本編號
	// Required: true
	VersionID *int32 `json:"VersionID"`
}

PTXServiceDTOBusSpecificationV2BusRoute BusRoute

路線資料型別

swagger:model PTX.Service.DTO.Bus.Specification.V2.BusRoute

func (*PTXServiceDTOBusSpecificationV2BusRoute) ContextValidate added in v0.9.0

ContextValidate validate this p t x service d t o bus specification v2 bus route based on the context it is used

func (*PTXServiceDTOBusSpecificationV2BusRoute) MarshalBinary added in v0.7.0

func (m *PTXServiceDTOBusSpecificationV2BusRoute) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusRoute) UnmarshalBinary added in v0.7.0

func (m *PTXServiceDTOBusSpecificationV2BusRoute) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusRoute) Validate added in v0.7.0

Validate validates this p t x service d t o bus specification v2 bus route

type PTXServiceDTOBusSpecificationV2BusRouteFare added in v0.7.0

type PTXServiceDTOBusSpecificationV2BusRouteFare struct {

	// Int32
	//
	// 描述該路線計費方式 : [0:'段次計費',1:'起迄站間計費',2:'計費站區間計費']
	// Required: true
	FarePricingType *int64 `json:"FarePricingType"`

	// Int32
	//
	// 該收費方式是否應用到所有附屬路線 : [0:'否',1:'是']
	// Required: true
	IsForAllSubRoutes *int64 `json:"IsForAllSubRoutes"`

	// Int32
	//
	// 是否為免費公車 : [0:'否',1:'是']
	// Required: true
	IsFreeBus *int64 `json:"IsFreeBus"`

	// Array
	//
	// 起迄站間計費
	ODFares []*PTXServiceDTOBusSpecificationV2BusODFare "json:\"ODFares\" xml:\"List`1\""

	// String
	//
	// 營運業者代碼
	// Required: true
	OperatorID *string `json:"OperatorID" xml:"String"`

	// String
	//
	// 機關定義路線代號
	// Required: true
	RouteID *string `json:"RouteID" xml:"String"`

	// String
	//
	// 路線名稱
	RouteName string `json:"RouteName,omitempty" xml:"String,omitempty"`

	// Array
	//
	// 段次計費
	SectionFares []*PTXServiceDTOBusSpecificationV2SectionFare "json:\"SectionFares\" xml:\"List`1\""

	// Array
	//
	// 計費站區間計費
	StageFares []*PTXServiceDTOBusSpecificationV2BusStageFare "json:\"StageFares\" xml:\"List`1\""

	// String
	//
	// 機關定義附屬路線代碼
	SubRouteID string `json:"SubRouteID,omitempty" xml:"String,omitempty"`

	// String
	//
	// 附屬路線名稱
	SubRouteName string `json:"SubRouteName,omitempty" xml:"String,omitempty"`

	// DateTime
	//
	// 本平台資料更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
	// Required: true
	// Format: date-time
	UpdateTime *strfmt.DateTime `json:"UpdateTime"`
}

PTXServiceDTOBusSpecificationV2BusRouteFare BusRouteFare

路線票價資料

swagger:model PTX.Service.DTO.Bus.Specification.V2.BusRouteFare

func (*PTXServiceDTOBusSpecificationV2BusRouteFare) ContextValidate added in v0.9.0

ContextValidate validate this p t x service d t o bus specification v2 bus route fare based on the context it is used

func (*PTXServiceDTOBusSpecificationV2BusRouteFare) MarshalBinary added in v0.7.0

func (m *PTXServiceDTOBusSpecificationV2BusRouteFare) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusRouteFare) UnmarshalBinary added in v0.7.0

func (m *PTXServiceDTOBusSpecificationV2BusRouteFare) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusRouteFare) Validate added in v0.7.0

Validate validates this p t x service d t o bus specification v2 bus route fare

type PTXServiceDTOBusSpecificationV2BusRouteFareFare added in v0.11.0

type PTXServiceDTOBusSpecificationV2BusRouteFareFare struct {

	// Int32
	//
	// 費率等級 : [1:'成人',2:'學生',3:'孩童',4:'敬老',5:'愛心',6:'愛心孩童',7:'愛心優待或愛心陪伴',8:'團體',9:'軍警',10:'由各運業者自行定義的半票']
	// Required: true
	FareClass *int64 `json:"FareClass"`

	// Int32
	//
	// 計費價格(新台幣),其中-1表示不提供售票服務
	// Required: true
	Price *int32 `json:"Price"`

	// Int32
	//
	// 票種類型 : [1:'一般票',2:'來回票',3:'電子票證',4:'回數票',5:'定期票30天期',6:'定期票60天期',7:'早鳥票',8:'定期票90天期']
	// Required: true
	TicketType *int64 `json:"TicketType"`
}

PTXServiceDTOBusSpecificationV2BusRouteFareFare Fare

swagger:model PTX.Service.DTO.Bus.Specification.V2.BusRouteFare+Fare

func (*PTXServiceDTOBusSpecificationV2BusRouteFareFare) ContextValidate added in v0.11.0

ContextValidate validates this p t x service d t o bus specification v2 bus route fare fare based on context it is used

func (*PTXServiceDTOBusSpecificationV2BusRouteFareFare) MarshalBinary added in v0.11.0

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusRouteFareFare) UnmarshalBinary added in v0.11.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusRouteFareFare) Validate added in v0.11.0

Validate validates this p t x service d t o bus specification v2 bus route fare fare

type PTXServiceDTOBusSpecificationV2BusRouteFareStop added in v0.11.0

type PTXServiceDTOBusSpecificationV2BusRouteFareStop struct {

	// String
	//
	// 緩衝區站牌代碼
	// Required: true
	StopID *string `json:"StopID" xml:"String"`

	// String
	//
	// 緩衝區站牌名稱
	// Required: true
	StopName *string `json:"StopName" xml:"String"`
}

PTXServiceDTOBusSpecificationV2BusRouteFareStop Stop

swagger:model PTX.Service.DTO.Bus.Specification.V2.BusRouteFare+Stop

func (*PTXServiceDTOBusSpecificationV2BusRouteFareStop) ContextValidate added in v0.11.0

ContextValidate validates this p t x service d t o bus specification v2 bus route fare stop based on context it is used

func (*PTXServiceDTOBusSpecificationV2BusRouteFareStop) MarshalBinary added in v0.11.0

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusRouteFareStop) UnmarshalBinary added in v0.11.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusRouteFareStop) Validate added in v0.11.0

Validate validates this p t x service d t o bus specification v2 bus route fare stop

type PTXServiceDTOBusSpecificationV2BusRouteNetwork added in v0.11.0

type PTXServiceDTOBusSpecificationV2BusRouteNetwork struct {

	// String
	//
	// 地區既用中之路線代碼(為原資料內碼)
	// Required: true
	RouteID *string `json:"RouteID" xml:"String"`

	// NameType
	//
	// 路線名稱
	// Required: true
	RouteName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"RouteName" xml:"NameType"`

	// String
	//
	// 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
	// Required: true
	RouteUID *string `json:"RouteUID" xml:"String"`

	// Array
	//
	// 站間線段序號
	// Required: true
	Segments []*PTXServiceDTOBusSpecificationV2BusRouteNetworkSegment "json:\"Segments\" xml:\"List`1\""

	// DateTime
	//
	// 資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
	// Required: true
	// Format: date-time
	UpdateTime *strfmt.DateTime `json:"UpdateTime"`

	// Int32
	//
	// 資料版本編號
	// Required: true
	VersionID *int32 `json:"VersionID"`
}

PTXServiceDTOBusSpecificationV2BusRouteNetwork BusRouteNetwork

swagger:model PTX.Service.DTO.Bus.Specification.V2.BusRouteNetwork

func (*PTXServiceDTOBusSpecificationV2BusRouteNetwork) ContextValidate added in v0.11.0

ContextValidate validate this p t x service d t o bus specification v2 bus route network based on the context it is used

func (*PTXServiceDTOBusSpecificationV2BusRouteNetwork) MarshalBinary added in v0.11.0

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusRouteNetwork) UnmarshalBinary added in v0.11.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusRouteNetwork) Validate added in v0.11.0

Validate validates this p t x service d t o bus specification v2 bus route network

type PTXServiceDTOBusSpecificationV2BusRouteNetworkSegment added in v0.11.0

type PTXServiceDTOBusSpecificationV2BusRouteNetworkSegment struct {

	// Single
	//
	// 站間線段距離
	// Required: true
	Distance *float32 `json:"Distance"`

	// String
	//
	// 表BusStation唯一碼(起點站牌)
	// Required: true
	FromStationID *string `json:"FromStationID" xml:"String"`

	// Single
	//
	// 站間線段序號
	// Required: true
	Sequence *float32 `json:"Sequence"`

	// String
	//
	// 表BusStation唯一碼(迄點站牌)
	// Required: true
	ToStationID *string `json:"ToStationID" xml:"String"`
}

PTXServiceDTOBusSpecificationV2BusRouteNetworkSegment Segment

swagger:model PTX.Service.DTO.Bus.Specification.V2.BusRouteNetwork+Segment

func (*PTXServiceDTOBusSpecificationV2BusRouteNetworkSegment) ContextValidate added in v0.11.0

ContextValidate validates this p t x service d t o bus specification v2 bus route network segment based on context it is used

func (*PTXServiceDTOBusSpecificationV2BusRouteNetworkSegment) MarshalBinary added in v0.11.0

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusRouteNetworkSegment) UnmarshalBinary added in v0.11.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusRouteNetworkSegment) Validate added in v0.11.0

Validate validates this p t x service d t o bus specification v2 bus route network segment

type PTXServiceDTOBusSpecificationV2BusS2STravelTime added in v0.9.0

type PTXServiceDTOBusSpecificationV2BusS2STravelTime struct {

	// Int32
	//
	// 去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']
	// Required: true
	Direction *int64 `json:"Direction"`

	// String
	//
	// 地區既用中之路線代碼(為原資料內碼)
	// Required: true
	RouteID *string `json:"RouteID" xml:"String"`

	// String
	//
	// 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
	// Required: true
	RouteUID *string `json:"RouteUID" xml:"String"`

	// String
	//
	// 地區既用中之附屬路線代碼(為原資料內碼)
	// Required: true
	SubRouteID *string `json:"SubRouteID" xml:"String"`

	// String
	//
	// 附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
	// Required: true
	SubRouteUID *string `json:"SubRouteUID" xml:"String"`

	// Array
	//
	// 旅行時間資訊
	// Required: true
	TravelTimes []*PTXServiceDTOBusSpecificationV2ServiceTime "json:\"TravelTimes\" xml:\"List`1\""

	// DateTime
	//
	// 資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
	// Required: true
	// Format: date-time
	UpdateTime *strfmt.DateTime `json:"UpdateTime"`
}

PTXServiceDTOBusSpecificationV2BusS2STravelTime BusS2STravelTime

站間旅行時間資料型別

swagger:model PTX.Service.DTO.Bus.Specification.V2.BusS2STravelTime

func (*PTXServiceDTOBusSpecificationV2BusS2STravelTime) ContextValidate added in v0.9.0

ContextValidate validate this p t x service d t o bus specification v2 bus s2 s travel time based on the context it is used

func (*PTXServiceDTOBusSpecificationV2BusS2STravelTime) MarshalBinary added in v0.9.0

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusS2STravelTime) UnmarshalBinary added in v0.9.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusS2STravelTime) Validate added in v0.9.0

Validate validates this p t x service d t o bus specification v2 bus s2 s travel time

type PTXServiceDTOBusSpecificationV2BusSchedule added in v0.7.0

type PTXServiceDTOBusSpecificationV2BusSchedule struct {

	// Int32
	//
	// 去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']
	// Required: true
	Direction *int64 `json:"Direction"`

	// Array
	//
	// 發車班距
	Frequencys []*PTXServiceDTOBusSpecificationV2BusFrequency "json:\"Frequencys\" xml:\"List`1\""

	// String
	//
	// 營運業者簡碼
	OperatorCode string `json:"OperatorCode,omitempty" xml:"String,omitempty"`

	// String
	//
	// 營運業者代碼
	OperatorID string `json:"OperatorID,omitempty" xml:"String,omitempty"`

	// String
	//
	// 地區既用中之路線代碼(為原資料內碼)
	// Required: true
	RouteID *string `json:"RouteID" xml:"String"`

	// NameType
	//
	// 路線名稱
	// Required: true
	RouteName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"RouteName" xml:"NameType"`

	// String
	//
	// 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
	// Required: true
	RouteUID *string `json:"RouteUID" xml:"String"`

	// String
	//
	// 地區既用中之附屬路線代碼(為原資料內碼)
	// Required: true
	SubRouteID *string `json:"SubRouteID" xml:"String"`

	// NameType
	//
	// 附屬路線名稱
	// Required: true
	SubRouteName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"SubRouteName" xml:"NameType"`

	// String
	//
	// 附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
	// Required: true
	SubRouteUID *string `json:"SubRouteUID" xml:"String"`

	// Array
	//
	// 預定班表
	Timetables []*PTXServiceDTOBusSpecificationV2BusTimetable "json:\"Timetables\" xml:\"List`1\""

	// DateTime
	//
	// 資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
	// Required: true
	// Format: date-time
	UpdateTime *strfmt.DateTime `json:"UpdateTime"`

	// Int32
	//
	// 資料版本編號
	// Required: true
	VersionID *int32 `json:"VersionID"`
}

PTXServiceDTOBusSpecificationV2BusSchedule BusSchedule

班表資料

swagger:model PTX.Service.DTO.Bus.Specification.V2.BusSchedule

func (*PTXServiceDTOBusSpecificationV2BusSchedule) ContextValidate added in v0.9.0

ContextValidate validate this p t x service d t o bus specification v2 bus schedule based on the context it is used

func (*PTXServiceDTOBusSpecificationV2BusSchedule) MarshalBinary added in v0.7.0

func (m *PTXServiceDTOBusSpecificationV2BusSchedule) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusSchedule) UnmarshalBinary added in v0.7.0

func (m *PTXServiceDTOBusSpecificationV2BusSchedule) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusSchedule) Validate added in v0.7.0

Validate validates this p t x service d t o bus specification v2 bus schedule

type PTXServiceDTOBusSpecificationV2BusShape added in v0.7.0

type PTXServiceDTOBusSpecificationV2BusShape struct {

	// Int32
	//
	// 去返程,若無值則表示來源尚無區分去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']
	Direction int64 `json:"Direction,omitempty"`

	// String
	//
	// 路線軌跡編碼(encoded polyline)
	// Required: true
	EncodedPolyline *string `json:"EncodedPolyline" xml:"String"`

	// String
	//
	// well-known text,為路線軌跡資料
	// Required: true
	Geometry *string `json:"Geometry" xml:"String"`

	// String
	//
	// 地區既用中之路線代碼(為原資料內碼)
	// Required: true
	RouteID *string `json:"RouteID" xml:"String"`

	// NameType
	//
	// 路線名稱
	// Required: true
	RouteName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"RouteName" xml:"NameType"`

	// String
	//
	// 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
	// Required: true
	RouteUID *string `json:"RouteUID" xml:"String"`

	// String
	//
	// 附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
	SubRouteID string `json:"SubRouteID,omitempty" xml:"String,omitempty"`

	// NameType
	//
	// 附屬路線名稱
	SubRouteName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"SubRouteName,omitempty" xml:"NameType,omitempty"`

	// String
	//
	// 附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
	// Required: true
	SubRouteUID *string `json:"SubRouteUID" xml:"String"`

	// DateTime
	//
	// 資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
	// Required: true
	// Format: date-time
	UpdateTime *strfmt.DateTime `json:"UpdateTime"`

	// Int32
	//
	// 資料版本編號(由於該服務資料不再版控,固定帶入版號0)
	// Required: true
	VersionID *int32 `json:"VersionID"`
}

PTXServiceDTOBusSpecificationV2BusShape BusShape

公車線型資料

swagger:model PTX.Service.DTO.Bus.Specification.V2.BusShape

func (*PTXServiceDTOBusSpecificationV2BusShape) ContextValidate added in v0.9.0

ContextValidate validate this p t x service d t o bus specification v2 bus shape based on the context it is used

func (*PTXServiceDTOBusSpecificationV2BusShape) MarshalBinary added in v0.7.0

func (m *PTXServiceDTOBusSpecificationV2BusShape) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusShape) UnmarshalBinary added in v0.7.0

func (m *PTXServiceDTOBusSpecificationV2BusShape) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusShape) Validate added in v0.7.0

Validate validates this p t x service d t o bus specification v2 bus shape

type PTXServiceDTOBusSpecificationV2BusStage added in v0.7.0

type PTXServiceDTOBusSpecificationV2BusStage struct {

	// String
	//
	// 站牌代碼
	// Required: true
	StopID *string `json:"StopID" xml:"String"`

	// String
	//
	// 站牌名稱
	StopName string `json:"StopName,omitempty" xml:"String,omitempty"`
}

PTXServiceDTOBusSpecificationV2BusStage BusStage

計費站

swagger:model PTX.Service.DTO.Bus.Specification.V2.BusStage

func (*PTXServiceDTOBusSpecificationV2BusStage) ContextValidate added in v0.9.0

ContextValidate validates this p t x service d t o bus specification v2 bus stage based on context it is used

func (*PTXServiceDTOBusSpecificationV2BusStage) MarshalBinary added in v0.7.0

func (m *PTXServiceDTOBusSpecificationV2BusStage) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusStage) UnmarshalBinary added in v0.7.0

func (m *PTXServiceDTOBusSpecificationV2BusStage) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusStage) Validate added in v0.7.0

Validate validates this p t x service d t o bus specification v2 bus stage

type PTXServiceDTOBusSpecificationV2BusStageFare added in v0.7.0

type PTXServiceDTOBusSpecificationV2BusStageFare struct {

	// BusStage
	//
	// 訖點計費站
	// Required: true
	DestinationStage struct {
		PTXServiceDTOBusSpecificationV2BusStage
	} `json:"DestinationStage" xml:"BusStage"`

	// Int32
	//
	// 方向性描述 : [0:'去程',1:'返程',2:'迴圈',255:'未知']
	// Required: true
	Direction *int64 `json:"Direction"`

	// Array
	//
	// 票價內容
	// Required: true
	Fares []*PTXServiceDTOBusSpecificationV2BusFare "json:\"Fares\" xml:\"List`1\""

	// BusStage
	//
	// 起點計費站
	// Required: true
	OriginStage struct {
		PTXServiceDTOBusSpecificationV2BusStage
	} `json:"OriginStage" xml:"BusStage"`
}

PTXServiceDTOBusSpecificationV2BusStageFare BusStageFare

此計費方式以一路線內所有站牌分區收費。(公總稱之為計費站收費, Stage=計費站)

swagger:model PTX.Service.DTO.Bus.Specification.V2.BusStageFare

func (*PTXServiceDTOBusSpecificationV2BusStageFare) ContextValidate added in v0.9.0

ContextValidate validate this p t x service d t o bus specification v2 bus stage fare based on the context it is used

func (*PTXServiceDTOBusSpecificationV2BusStageFare) MarshalBinary added in v0.7.0

func (m *PTXServiceDTOBusSpecificationV2BusStageFare) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusStageFare) UnmarshalBinary added in v0.7.0

func (m *PTXServiceDTOBusSpecificationV2BusStageFare) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusStageFare) Validate added in v0.7.0

Validate validates this p t x service d t o bus specification v2 bus stage fare

type PTXServiceDTOBusSpecificationV2BusStation added in v0.7.0

type PTXServiceDTOBusSpecificationV2BusStation struct {

	// String
	//
	// 方位角,E:東行;W:西行;S:南行;N:北行;SE:東南行;NE:東北行;SW:西南行;NW:西北行
	Bearing string `json:"Bearing,omitempty" xml:"String,omitempty"`

	// String
	//
	// 站牌位置縣市之代碼(國際ISO 3166-2 三碼城市代碼)[若為公路/國道客運路線則為空值]
	LocationCityCode string `json:"LocationCityCode,omitempty" xml:"String,omitempty"`

	// String
	//
	// 站位地址
	StationAddress string `json:"StationAddress,omitempty" xml:"String,omitempty"`

	// String
	//
	// 站牌所屬的組站位ID
	// Required: true
	StationGroupID *string `json:"StationGroupID" xml:"String"`

	// String
	//
	// 站位代碼
	// Required: true
	StationID *string `json:"StationID" xml:"String"`

	// NameType
	//
	// 站位名稱
	// Required: true
	StationName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"StationName" xml:"NameType"`

	// PointType
	//
	// 站位位置
	// Required: true
	StationPosition struct {
		PTXServiceDTOSharedSpecificationV2BasePointType
	} `json:"StationPosition" xml:"PointType"`

	// String
	//
	// 站位唯一識別代碼,規則為 {業管機關簡碼} + {StationID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
	// Required: true
	StationUID *string `json:"StationUID" xml:"String"`

	// Array
	//
	// 站牌與所行經此站牌之路線列表(資料會對路線展開,因此可能會有重複的站牌資料)
	Stops []*PTXServiceDTOBusSpecificationV2StationStop "json:\"Stops\" xml:\"List`1\""

	// DateTime
	//
	// 資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
	// Required: true
	// Format: date-time
	UpdateTime *strfmt.DateTime `json:"UpdateTime"`

	// Int32
	//
	// 資料版本編號
	// Required: true
	VersionID *int32 `json:"VersionID"`
}

PTXServiceDTOBusSpecificationV2BusStation BusStation

站牌/位資料型別

swagger:model PTX.Service.DTO.Bus.Specification.V2.BusStation

func (*PTXServiceDTOBusSpecificationV2BusStation) ContextValidate added in v0.9.0

ContextValidate validate this p t x service d t o bus specification v2 bus station based on the context it is used

func (*PTXServiceDTOBusSpecificationV2BusStation) MarshalBinary added in v0.7.0

func (m *PTXServiceDTOBusSpecificationV2BusStation) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusStation) UnmarshalBinary added in v0.7.0

func (m *PTXServiceDTOBusSpecificationV2BusStation) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusStation) Validate added in v0.7.0

Validate validates this p t x service d t o bus specification v2 bus station

type PTXServiceDTOBusSpecificationV2BusStationGroup added in v0.7.0

type PTXServiceDTOBusSpecificationV2BusStationGroup struct {

	// String
	//
	// 組站位代碼
	// Required: true
	StationGroupID *string `json:"StationGroupID" xml:"String"`

	// NameType
	//
	// 組站位名稱
	// Required: true
	StationGroupName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"StationGroupName" xml:"NameType"`

	// PointType
	//
	// 組站位位置
	// Required: true
	StationGroupPosition struct {
		PTXServiceDTOSharedSpecificationV2BasePointType
	} `json:"StationGroupPosition" xml:"PointType"`

	// String
	//
	// 組站位唯一識別代碼,規則為 {業管機關簡碼} + {StationGroupID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
	// Required: true
	StationGroupUID *string `json:"StationGroupUID" xml:"String"`

	// DateTime
	//
	// 資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
	// Required: true
	// Format: date-time
	UpdateTime *strfmt.DateTime `json:"UpdateTime"`

	// Int32
	//
	// 資料版本編號
	// Required: true
	VersionID *int32 `json:"VersionID"`
}

PTXServiceDTOBusSpecificationV2BusStationGroup BusStationGroup

組站位資料型別

swagger:model PTX.Service.DTO.Bus.Specification.V2.BusStationGroup

func (*PTXServiceDTOBusSpecificationV2BusStationGroup) ContextValidate added in v0.9.0

ContextValidate validate this p t x service d t o bus specification v2 bus station group based on the context it is used

func (*PTXServiceDTOBusSpecificationV2BusStationGroup) MarshalBinary added in v0.7.0

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusStationGroup) UnmarshalBinary added in v0.7.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusStationGroup) Validate added in v0.7.0

Validate validates this p t x service d t o bus specification v2 bus station group

type PTXServiceDTOBusSpecificationV2BusStop added in v0.7.0

type PTXServiceDTOBusSpecificationV2BusStop struct {

	// String
	//
	// 業管機關代碼
	// Required: true
	AuthorityID *string `json:"AuthorityID" xml:"String"`

	// String
	//
	// 方位角,E:東行;W:西行;S:南行;N:北行;SE:東南行;NE:東北行;SW:西南行;NW:西北行
	Bearing string `json:"Bearing,omitempty" xml:"String,omitempty"`

	// String
	//
	// 站牌權管所屬縣市(相當於市區公車API的City參數)[若為公路/國道客運路線則為空值]
	City string `json:"City,omitempty" xml:"String,omitempty"`

	// String
	//
	// 站牌權管所屬縣市之代碼(國際ISO 3166-2 三碼城市代碼)[若為公路/國道客運路線則為空值]
	CityCode string `json:"CityCode,omitempty" xml:"String,omitempty"`

	// String
	//
	// 站牌位置縣市之代碼(國際ISO 3166-2 三碼城市代碼)[若為公路/國道客運路線則為空值]
	LocationCityCode string `json:"LocationCityCode,omitempty" xml:"String,omitempty"`

	// String
	//
	// 站牌所屬的組站位ID
	// Required: true
	StationGroupID *string `json:"StationGroupID" xml:"String"`

	// String
	//
	// 站牌所屬的站位ID
	StationID string `json:"StationID,omitempty" xml:"String,omitempty"`

	// String
	//
	// 站牌地址
	StopAddress string `json:"StopAddress,omitempty" xml:"String,omitempty"`

	// String
	//
	// 站牌詳細說明描述
	StopDescription string `json:"StopDescription,omitempty" xml:"String,omitempty"`

	// String
	//
	// 地區既用中之站牌代碼(為原資料內碼)
	// Required: true
	StopID *string `json:"StopID" xml:"String"`

	// NameType
	//
	// 站牌名稱
	// Required: true
	StopName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"StopName" xml:"NameType"`

	// PointType
	//
	// 站牌位置
	// Required: true
	StopPosition struct {
		PTXServiceDTOSharedSpecificationV2BasePointType
	} `json:"StopPosition" xml:"PointType"`

	// String
	//
	// 站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
	// Required: true
	StopUID *string `json:"StopUID" xml:"String"`

	// DateTime
	//
	// 資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
	// Required: true
	// Format: date-time
	UpdateTime *strfmt.DateTime `json:"UpdateTime"`

	// Int32
	//
	// 資料版本編號
	// Required: true
	VersionID *int32 `json:"VersionID"`
}

PTXServiceDTOBusSpecificationV2BusStop BusStop

站牌/位資料型別

swagger:model PTX.Service.DTO.Bus.Specification.V2.BusStop

func (*PTXServiceDTOBusSpecificationV2BusStop) ContextValidate added in v0.9.0

ContextValidate validate this p t x service d t o bus specification v2 bus stop based on the context it is used

func (*PTXServiceDTOBusSpecificationV2BusStop) MarshalBinary added in v0.7.0

func (m *PTXServiceDTOBusSpecificationV2BusStop) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusStop) UnmarshalBinary added in v0.7.0

func (m *PTXServiceDTOBusSpecificationV2BusStop) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusStop) Validate added in v0.7.0

Validate validates this p t x service d t o bus specification v2 bus stop

type PTXServiceDTOBusSpecificationV2BusStopOfRoute added in v0.7.0

type PTXServiceDTOBusSpecificationV2BusStopOfRoute struct {

	// String
	//
	// 站牌權管所屬縣市(相當於市區公車API的City參數)[若為公路/國道客運路線則為空值]
	City string `json:"City,omitempty" xml:"String,omitempty"`

	// String
	//
	// 站牌權管所屬縣市之代碼(國際ISO 3166-2 三碼城市代碼)[若為公路/國道客運路線則為空值]
	CityCode string `json:"CityCode,omitempty" xml:"String,omitempty"`

	// Int32
	//
	// 去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']
	Direction int64 `json:"Direction,omitempty"`

	// Array
	//
	// 營運業者
	Operators []*PTXServiceDTOBusSpecificationV2EmbeddedRouteOperator "json:\"Operators\" xml:\"List`1\""

	// String
	//
	// 地區既用中之路線代碼(為原資料內碼)
	// Required: true
	RouteID *string `json:"RouteID" xml:"String"`

	// NameType
	//
	// 路線名稱
	// Required: true
	RouteName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"RouteName" xml:"NameType"`

	// String
	//
	// 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
	// Required: true
	RouteUID *string `json:"RouteUID" xml:"String"`

	// Array
	//
	// 所有經過站牌
	// Required: true
	Stops []*PTXServiceDTOBusSpecificationV2EmbeddedStop "json:\"Stops\" xml:\"List`1\""

	// String
	//
	// 地區既用中之附屬路線代碼(為原資料內碼)
	// Required: true
	SubRouteID *string `json:"SubRouteID" xml:"String"`

	// NameType
	//
	// 附屬路線名稱
	// Required: true
	SubRouteName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"SubRouteName" xml:"NameType"`

	// String
	//
	// 附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
	// Required: true
	SubRouteUID *string `json:"SubRouteUID" xml:"String"`

	// DateTime
	//
	// 資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
	// Required: true
	// Format: date-time
	UpdateTime *strfmt.DateTime `json:"UpdateTime"`

	// Int32
	//
	// 資料版本編號
	// Required: true
	VersionID *int32 `json:"VersionID"`
}

PTXServiceDTOBusSpecificationV2BusStopOfRoute BusStopOfRoute

路線站序資料

swagger:model PTX.Service.DTO.Bus.Specification.V2.BusStopOfRoute

func (*PTXServiceDTOBusSpecificationV2BusStopOfRoute) ContextValidate added in v0.9.0

ContextValidate validate this p t x service d t o bus specification v2 bus stop of route based on the context it is used

func (*PTXServiceDTOBusSpecificationV2BusStopOfRoute) MarshalBinary added in v0.7.0

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusStopOfRoute) UnmarshalBinary added in v0.7.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusStopOfRoute) Validate added in v0.7.0

Validate validates this p t x service d t o bus specification v2 bus stop of route

type PTXServiceDTOBusSpecificationV2BusStopTime added in v0.7.0

type PTXServiceDTOBusSpecificationV2BusStopTime struct {

	// String
	//
	// 到站時間,格式為:HH:mm
	// Required: true
	ArrivalTime *string `json:"ArrivalTime" xml:"String"`

	// String
	//
	// 離站時間,格式為:HH:mm
	// Required: true
	DepartureTime *string `json:"DepartureTime" xml:"String"`

	// String
	//
	// 地區既用中之站牌代碼(為原資料內碼)
	// Required: true
	StopID *string `json:"StopID" xml:"String"`

	// NameType
	//
	// 站牌名稱
	// Required: true
	StopName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"StopName" xml:"NameType"`

	// Int32
	//
	// 路線經過站牌之順序(由1開始)
	// Required: true
	StopSequence *int32 `json:"StopSequence"`

	// String
	//
	// 站牌唯一識別代碼,規則為 {業管機關代碼} + {StopID},其中 {業管機關代碼} 可於Authority API中的AuthorityCode欄位查詢
	// Required: true
	StopUID *string `json:"StopUID" xml:"String"`
}

PTXServiceDTOBusSpecificationV2BusStopTime BusStopTime

公車停靠時間資料

swagger:model PTX.Service.DTO.Bus.Specification.V2.BusStopTime

func (*PTXServiceDTOBusSpecificationV2BusStopTime) ContextValidate added in v0.9.0

ContextValidate validate this p t x service d t o bus specification v2 bus stop time based on the context it is used

func (*PTXServiceDTOBusSpecificationV2BusStopTime) MarshalBinary added in v0.7.0

func (m *PTXServiceDTOBusSpecificationV2BusStopTime) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusStopTime) UnmarshalBinary added in v0.7.0

func (m *PTXServiceDTOBusSpecificationV2BusStopTime) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusStopTime) Validate added in v0.7.0

Validate validates this p t x service d t o bus specification v2 bus stop time

type PTXServiceDTOBusSpecificationV2BusSubRoute added in v0.7.0

type PTXServiceDTOBusSpecificationV2BusSubRoute struct {

	// Int32
	//
	// 去返程 : [0:'去程',1:'返程',2:'迴圈',255:'未知']
	// Required: true
	Direction *int64 `json:"Direction"`

	// String
	//
	// 平日第一班發車時間
	FirstBusTime string `json:"FirstBusTime,omitempty" xml:"String,omitempty"`

	// String
	//
	// 車頭描述
	Headsign string `json:"Headsign,omitempty" xml:"String,omitempty"`

	// String
	//
	// 車頭英文描述
	HeadsignEn string `json:"HeadsignEn,omitempty" xml:"String,omitempty"`

	// String
	//
	// 假日去程第一班發車時間
	HolidayFirstBusTime string `json:"HolidayFirstBusTime,omitempty" xml:"String,omitempty"`

	// String
	//
	// 假日返程第一班發車時間
	HolidayLastBusTime string `json:"HolidayLastBusTime,omitempty" xml:"String,omitempty"`

	// String
	//
	// 平日返程第一班發車時間
	LastBusTime string `json:"LastBusTime,omitempty" xml:"String,omitempty"`

	// Array
	//
	// 營運業者代碼
	// Required: true
	OperatorIDs []string "json:\"OperatorIDs\" xml:\"List`1\""

	// String
	//
	// 地區既用中之附屬路線代碼(為原資料內碼)
	// Required: true
	SubRouteID *string `json:"SubRouteID" xml:"String"`

	// NameType
	//
	// 附屬路線名稱
	// Required: true
	SubRouteName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"SubRouteName" xml:"NameType"`

	// String
	//
	// 附屬路線唯一識別代碼,規則為 {業管機關簡碼} + {SubRouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
	// Required: true
	SubRouteUID *string `json:"SubRouteUID" xml:"String"`
}

PTXServiceDTOBusSpecificationV2BusSubRoute BusSubRoute

附屬路線資料型別

swagger:model PTX.Service.DTO.Bus.Specification.V2.BusSubRoute

func (*PTXServiceDTOBusSpecificationV2BusSubRoute) ContextValidate added in v0.9.0

ContextValidate validate this p t x service d t o bus specification v2 bus sub route based on the context it is used

func (*PTXServiceDTOBusSpecificationV2BusSubRoute) MarshalBinary added in v0.7.0

func (m *PTXServiceDTOBusSpecificationV2BusSubRoute) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusSubRoute) UnmarshalBinary added in v0.7.0

func (m *PTXServiceDTOBusSpecificationV2BusSubRoute) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusSubRoute) Validate added in v0.7.0

Validate validates this p t x service d t o bus specification v2 bus sub route

type PTXServiceDTOBusSpecificationV2BusTimetable added in v0.7.0

type PTXServiceDTOBusSpecificationV2BusTimetable struct {

	// ServiceDay
	//
	// 週內營運日
	ServiceDay struct {
		PTXServiceDTOBusSpecificationV2EmbeddedServiceDay
	} `json:"ServiceDay,omitempty" xml:"ServiceDay,omitempty"`

	// Array
	//
	// 特殊營運日
	SpecialDays []*PTXServiceDTOBusSpecificationV2SpecialDay "json:\"SpecialDays\" xml:\"List`1\""

	// Array
	//
	// 公車停靠時間資料
	// Required: true
	StopTimes []*PTXServiceDTOBusSpecificationV2BusStopTime "json:\"StopTimes\" xml:\"List`1\""

	// String
	//
	// 班次代碼
	TripID string `json:"TripID,omitempty" xml:"String,omitempty"`
}

PTXServiceDTOBusSpecificationV2BusTimetable BusTimetable

班次資料

swagger:model PTX.Service.DTO.Bus.Specification.V2.BusTimetable

func (*PTXServiceDTOBusSpecificationV2BusTimetable) ContextValidate added in v0.9.0

ContextValidate validate this p t x service d t o bus specification v2 bus timetable based on the context it is used

func (*PTXServiceDTOBusSpecificationV2BusTimetable) MarshalBinary added in v0.7.0

func (m *PTXServiceDTOBusSpecificationV2BusTimetable) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusTimetable) UnmarshalBinary added in v0.7.0

func (m *PTXServiceDTOBusSpecificationV2BusTimetable) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusTimetable) Validate added in v0.7.0

Validate validates this p t x service d t o bus specification v2 bus timetable

type PTXServiceDTOBusSpecificationV2BusVehicleInfo added in v0.7.0

type PTXServiceDTOBusSpecificationV2BusVehicleInfo struct {

	// String
	//
	// 車牌號碼
	// Required: true
	PlateNumb *string `json:"PlateNumb" xml:"String"`

	// DateTime
	//
	// 資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
	// Required: true
	// Format: date-time
	UpdateTime *strfmt.DateTime `json:"UpdateTime"`

	// Int32
	//
	// 車輛種類 : [0:'一般',1:'無障礙公車',2:'復康巴士',3:'小型巴士',4:'專車',5:'其他']
	// Required: true
	VehicleType *int64 `json:"VehicleType"`
}

PTXServiceDTOBusSpecificationV2BusVehicleInfo BusVehicleInfo

公車車輛基本資料

swagger:model PTX.Service.DTO.Bus.Specification.V2.BusVehicleInfo

func (*PTXServiceDTOBusSpecificationV2BusVehicleInfo) ContextValidate added in v0.9.0

ContextValidate validates this p t x service d t o bus specification v2 bus vehicle info based on context it is used

func (*PTXServiceDTOBusSpecificationV2BusVehicleInfo) MarshalBinary added in v0.7.0

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusVehicleInfo) UnmarshalBinary added in v0.7.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusVehicleInfo) Validate added in v0.7.0

Validate validates this p t x service d t o bus specification v2 bus vehicle info

type PTXServiceDTOBusSpecificationV2BusVersion added in v0.7.0

type PTXServiceDTOBusSpecificationV2BusVersion struct {

	// DateTime
	//
	// 此資料版本最後檢查更新之日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
	// Required: true
	// Format: date-time
	UpdateCheckTime *strfmt.DateTime `json:"UpdateCheckTime"`

	// DateTime
	//
	// 資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
	// Required: true
	// Format: date-time
	UpdateTime *strfmt.DateTime `json:"UpdateTime"`

	// Int32
	//
	// 資料版本編號
	// Required: true
	VersionID *int32 `json:"VersionID"`
}

PTXServiceDTOBusSpecificationV2BusVersion BusVersion

公車版本資料型別

swagger:model PTX.Service.DTO.Bus.Specification.V2.BusVersion

func (*PTXServiceDTOBusSpecificationV2BusVersion) ContextValidate added in v0.9.0

ContextValidate validates this p t x service d t o bus specification v2 bus version based on context it is used

func (*PTXServiceDTOBusSpecificationV2BusVersion) MarshalBinary added in v0.7.0

func (m *PTXServiceDTOBusSpecificationV2BusVersion) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusVersion) UnmarshalBinary added in v0.7.0

func (m *PTXServiceDTOBusSpecificationV2BusVersion) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2BusVersion) Validate added in v0.7.0

Validate validates this p t x service d t o bus specification v2 bus version

type PTXServiceDTOBusSpecificationV2DatePeriod added in v0.7.0

type PTXServiceDTOBusSpecificationV2DatePeriod struct {

	// String
	//
	// 營運結束日(格式: yyyy-MM-dd)
	EndDate string `json:"EndDate,omitempty" xml:"String,omitempty"`

	// String
	//
	// 營運起始日(格式: yyyy-MM-dd)
	StartDate string `json:"StartDate,omitempty" xml:"String,omitempty"`
}

PTXServiceDTOBusSpecificationV2DatePeriod DatePeriod

swagger:model PTX.Service.DTO.Bus.Specification.V2.DatePeriod

func (*PTXServiceDTOBusSpecificationV2DatePeriod) ContextValidate added in v0.9.0

ContextValidate validates this p t x service d t o bus specification v2 date period based on context it is used

func (*PTXServiceDTOBusSpecificationV2DatePeriod) MarshalBinary added in v0.7.0

func (m *PTXServiceDTOBusSpecificationV2DatePeriod) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2DatePeriod) UnmarshalBinary added in v0.7.0

func (m *PTXServiceDTOBusSpecificationV2DatePeriod) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2DatePeriod) Validate added in v0.7.0

Validate validates this p t x service d t o bus specification v2 date period

type PTXServiceDTOBusSpecificationV2EmbeddedRouteOperator added in v0.9.0

type PTXServiceDTOBusSpecificationV2EmbeddedRouteOperator struct {

	// String
	//
	// 營運業者簡碼
	// Required: true
	OperatorCode *string `json:"OperatorCode" xml:"String"`

	// String
	//
	// 營運業者代碼
	// Required: true
	OperatorID *string `json:"OperatorID" xml:"String"`

	// NameType
	//
	// 營運業者名稱
	// Required: true
	OperatorName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"OperatorName" xml:"NameType"`

	// String
	//
	// 營運業者編號[交通部票證資料系統定義]
	// Required: true
	OperatorNo *string `json:"OperatorNo" xml:"String"`
}

PTXServiceDTOBusSpecificationV2EmbeddedRouteOperator RouteOperator

營運業者資訊

swagger:model PTX.Service.DTO.Bus.Specification.V2.Embedded.RouteOperator

func (*PTXServiceDTOBusSpecificationV2EmbeddedRouteOperator) ContextValidate added in v0.9.0

ContextValidate validate this p t x service d t o bus specification v2 embedded route operator based on the context it is used

func (*PTXServiceDTOBusSpecificationV2EmbeddedRouteOperator) MarshalBinary added in v0.9.0

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2EmbeddedRouteOperator) UnmarshalBinary added in v0.9.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2EmbeddedRouteOperator) Validate added in v0.9.0

Validate validates this p t x service d t o bus specification v2 embedded route operator

type PTXServiceDTOBusSpecificationV2EmbeddedServiceDay added in v0.9.0

type PTXServiceDTOBusSpecificationV2EmbeddedServiceDay struct {

	// Int32
	//
	// 星期五是否營運 : [0:'否',1:'是']
	// Required: true
	Friday *int64 `json:"Friday"`

	// Int32
	//
	// 星期一是否營運 : [0:'否',1:'是']
	// Required: true
	Monday *int64 `json:"Monday"`

	// Int32
	//
	// 國定假日營運與否 : [0:'否',1:'是']
	NationalHolidays int64 `json:"NationalHolidays,omitempty"`

	// Int32
	//
	// 星期六是否營運 : [0:'否',1:'是']
	// Required: true
	Saturday *int64 `json:"Saturday"`

	// Int32
	//
	// 星期日是否營運 : [0:'否',1:'是']
	// Required: true
	Sunday *int64 `json:"Sunday"`

	// Int32
	//
	// 星期四是否營運 : [0:'否',1:'是']
	// Required: true
	Thursday *int64 `json:"Thursday"`

	// Int32
	//
	// 星期二是否營運 : [0:'否',1:'是']
	// Required: true
	Tuesday *int64 `json:"Tuesday"`

	// Int32
	//
	// 星期三是否營運 : [0:'否',1:'是']
	// Required: true
	Wednesday *int64 `json:"Wednesday"`
}

PTXServiceDTOBusSpecificationV2EmbeddedServiceDay ServiceDay

週內營運日資料

swagger:model PTX.Service.DTO.Bus.Specification.V2.Embedded.ServiceDay

func (*PTXServiceDTOBusSpecificationV2EmbeddedServiceDay) ContextValidate added in v0.9.0

ContextValidate validates this p t x service d t o bus specification v2 embedded service day based on context it is used

func (*PTXServiceDTOBusSpecificationV2EmbeddedServiceDay) MarshalBinary added in v0.9.0

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2EmbeddedServiceDay) UnmarshalBinary added in v0.9.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2EmbeddedServiceDay) Validate added in v0.9.0

Validate validates this p t x service d t o bus specification v2 embedded service day

type PTXServiceDTOBusSpecificationV2EmbeddedStop added in v0.9.0

type PTXServiceDTOBusSpecificationV2EmbeddedStop struct {

	// String
	//
	// 站牌位置縣市之代碼(國際ISO 3166-2 三碼城市代碼)[若為公路/國道客運路線則為空值]
	LocationCityCode string `json:"LocationCityCode,omitempty" xml:"String,omitempty"`

	// String
	//
	// 站牌所屬的組站位ID
	// Required: true
	StationGroupID *string `json:"StationGroupID" xml:"String"`

	// String
	//
	// 站牌所屬的站位ID
	StationID string `json:"StationID,omitempty" xml:"String,omitempty"`

	// Int32
	//
	// 上下車站別 : [-1:'可下車',0:'可上下車',1:'可上車']
	StopBoarding int64 `json:"StopBoarding,omitempty"`

	// String
	//
	// 地區既用中之站牌代碼(為原資料內碼)
	// Required: true
	StopID *string `json:"StopID" xml:"String"`

	// NameType
	//
	// 站牌名稱
	// Required: true
	StopName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"StopName" xml:"NameType"`

	// PointType
	//
	// 站牌位置
	// Required: true
	StopPosition struct {
		PTXServiceDTOSharedSpecificationV2BasePointType
	} `json:"StopPosition" xml:"PointType"`

	// Int32
	//
	// 路線經過站牌之順序
	// Required: true
	StopSequence *int32 `json:"StopSequence"`

	// String
	//
	// 站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
	// Required: true
	StopUID *string `json:"StopUID" xml:"String"`
}

PTXServiceDTOBusSpecificationV2EmbeddedStop Stop

站牌代碼資料

swagger:model PTX.Service.DTO.Bus.Specification.V2.Embedded.Stop

func (*PTXServiceDTOBusSpecificationV2EmbeddedStop) ContextValidate added in v0.9.0

ContextValidate validate this p t x service d t o bus specification v2 embedded stop based on the context it is used

func (*PTXServiceDTOBusSpecificationV2EmbeddedStop) MarshalBinary added in v0.9.0

func (m *PTXServiceDTOBusSpecificationV2EmbeddedStop) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2EmbeddedStop) UnmarshalBinary added in v0.9.0

func (m *PTXServiceDTOBusSpecificationV2EmbeddedStop) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2EmbeddedStop) Validate added in v0.9.0

Validate validates this p t x service d t o bus specification v2 embedded stop

type PTXServiceDTOBusSpecificationV2FirstLastTrip added in v0.7.0

type PTXServiceDTOBusSpecificationV2FirstLastTrip struct {

	// String
	//
	// 頭班車發車時間(HH:mm)
	// Required: true
	FirstTripDepTime *string `json:"FirstTripDepTime" xml:"String"`

	// String
	//
	// 末班車發車時間(HH:mm)
	// Required: true
	LastTripDepTime *string `json:"LastTripDepTime" xml:"String"`

	// ServiceDay
	//
	// 服務日型態
	// Required: true
	ServiceDay struct {
		PTXServiceDTOBusSpecificationV2BusFirstLastTripInfoServiceDay
	} `json:"ServiceDay" xml:"ServiceDay"`
}

PTXServiceDTOBusSpecificationV2FirstLastTrip FirstLastTrip

首末班車資料型別

swagger:model PTX.Service.DTO.Bus.Specification.V2.FirstLastTrip

func (*PTXServiceDTOBusSpecificationV2FirstLastTrip) ContextValidate added in v0.9.0

ContextValidate validate this p t x service d t o bus specification v2 first last trip based on the context it is used

func (*PTXServiceDTOBusSpecificationV2FirstLastTrip) MarshalBinary added in v0.7.0

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2FirstLastTrip) UnmarshalBinary added in v0.7.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2FirstLastTrip) Validate added in v0.7.0

Validate validates this p t x service d t o bus specification v2 first last trip

type PTXServiceDTOBusSpecificationV2N1Estimate added in v0.7.0

type PTXServiceDTOBusSpecificationV2N1Estimate struct {

	// 車輛之到站時間預估(秒)
	EstimateTime int32 `json:"EstimateTime,omitempty"`

	// 是否為末班車
	IsLastBus bool `json:"IsLastBus,omitempty"`

	// String
	//
	// 車輛車牌號碼
	PlateNumb string `json:"PlateNumb,omitempty" xml:"String,omitempty"`

	// Int32
	//
	// 車輛於該站之進離站狀態 : [0:'離站',1:'進站']
	VehicleStopStatus int64 `json:"VehicleStopStatus,omitempty"`
}

PTXServiceDTOBusSpecificationV2N1Estimate Estimate

swagger:model PTX.Service.DTO.Bus.Specification.V2.N1.Estimate

func (*PTXServiceDTOBusSpecificationV2N1Estimate) ContextValidate added in v0.9.0

ContextValidate validates this p t x service d t o bus specification v2 n1 estimate based on context it is used

func (*PTXServiceDTOBusSpecificationV2N1Estimate) MarshalBinary added in v0.7.0

func (m *PTXServiceDTOBusSpecificationV2N1Estimate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2N1Estimate) UnmarshalBinary added in v0.7.0

func (m *PTXServiceDTOBusSpecificationV2N1Estimate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2N1Estimate) Validate added in v0.7.0

Validate validates this p t x service d t o bus specification v2 n1 estimate

type PTXServiceDTOBusSpecificationV2Scope added in v0.11.0

type PTXServiceDTOBusSpecificationV2Scope struct {

	// Array
	//
	// 營運業者資料
	Operators []*PTXServiceDTOBusSpecificationV2ScopeOperator "json:\"Operators\" xml:\"List`1\""

	// Array
	//
	// 路線資料
	Routes []*PTXServiceDTOBusSpecificationV2ScopeRoute "json:\"Routes\" xml:\"List`1\""

	// Array
	//
	// 站位資料
	Stations []*PTXServiceDTOBusSpecificationV2ScopeStation "json:\"Stations\" xml:\"List`1\""

	// Array
	//
	// 站牌資料
	Stops []*PTXServiceDTOBusSpecificationV2ScopeStop "json:\"Stops\" xml:\"List`1\""

	// Array
	//
	// 附屬路線資料
	SubRoutes []*PTXServiceDTOBusSpecificationV2ScopeSubRoute "json:\"SubRoutes\" xml:\"List`1\""

	// Array
	//
	// 班次資料
	Trips []*PTXServiceDTOBusSpecificationV2ScopeTrip "json:\"Trips\" xml:\"List`1\""
}

PTXServiceDTOBusSpecificationV2Scope Scope

通阻影響範圍

swagger:model PTX.Service.DTO.Bus.Specification.V2.Scope

func (*PTXServiceDTOBusSpecificationV2Scope) ContextValidate added in v0.11.0

func (m *PTXServiceDTOBusSpecificationV2Scope) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this p t x service d t o bus specification v2 scope based on the context it is used

func (*PTXServiceDTOBusSpecificationV2Scope) MarshalBinary added in v0.11.0

func (m *PTXServiceDTOBusSpecificationV2Scope) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2Scope) UnmarshalBinary added in v0.11.0

func (m *PTXServiceDTOBusSpecificationV2Scope) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2Scope) Validate added in v0.11.0

Validate validates this p t x service d t o bus specification v2 scope

type PTXServiceDTOBusSpecificationV2ScopeOperator added in v0.11.0

type PTXServiceDTOBusSpecificationV2ScopeOperator struct {

	// String
	//
	// 營運業者代碼 ,
	OperatorID string `json:"OperatorID,omitempty" xml:"String,omitempty"`

	// NameType
	//
	// 營運業者名稱
	OperatorName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"OperatorName,omitempty" xml:"NameType,omitempty"`
}

PTXServiceDTOBusSpecificationV2ScopeOperator Operator

營運業者資料

swagger:model PTX.Service.DTO.Bus.Specification.V2.Scope+Operator

func (*PTXServiceDTOBusSpecificationV2ScopeOperator) ContextValidate added in v0.11.0

ContextValidate validate this p t x service d t o bus specification v2 scope operator based on the context it is used

func (*PTXServiceDTOBusSpecificationV2ScopeOperator) MarshalBinary added in v0.11.0

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2ScopeOperator) UnmarshalBinary added in v0.11.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2ScopeOperator) Validate added in v0.11.0

Validate validates this p t x service d t o bus specification v2 scope operator

type PTXServiceDTOBusSpecificationV2ScopeRoute added in v0.11.0

type PTXServiceDTOBusSpecificationV2ScopeRoute struct {

	// Int32
	//
	// 影響方向 : [0:'去程',1:'返程',2:'迴圈',255:'未知']
	Direction int64 `json:"Direction,omitempty"`

	// String
	//
	// 地區既用中之班次代碼(為原資料內碼)
	RouteID string `json:"RouteID,omitempty" xml:"String,omitempty"`

	// NameType
	//
	// 路線名稱
	RouteName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"RouteName,omitempty" xml:"NameType,omitempty"`
}

PTXServiceDTOBusSpecificationV2ScopeRoute Route

路線資料

swagger:model PTX.Service.DTO.Bus.Specification.V2.Scope+Route

func (*PTXServiceDTOBusSpecificationV2ScopeRoute) ContextValidate added in v0.11.0

ContextValidate validate this p t x service d t o bus specification v2 scope route based on the context it is used

func (*PTXServiceDTOBusSpecificationV2ScopeRoute) MarshalBinary added in v0.11.0

func (m *PTXServiceDTOBusSpecificationV2ScopeRoute) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2ScopeRoute) UnmarshalBinary added in v0.11.0

func (m *PTXServiceDTOBusSpecificationV2ScopeRoute) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2ScopeRoute) Validate added in v0.11.0

Validate validates this p t x service d t o bus specification v2 scope route

type PTXServiceDTOBusSpecificationV2ScopeStation added in v0.11.0

type PTXServiceDTOBusSpecificationV2ScopeStation struct {

	// String
	//
	// 站位代碼
	StationID string `json:"StationID,omitempty" xml:"String,omitempty"`

	// NameType
	//
	// 站位名稱
	StationName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"StationName,omitempty" xml:"NameType,omitempty"`
}

PTXServiceDTOBusSpecificationV2ScopeStation Station

站位資料

swagger:model PTX.Service.DTO.Bus.Specification.V2.Scope+Station

func (*PTXServiceDTOBusSpecificationV2ScopeStation) ContextValidate added in v0.11.0

ContextValidate validate this p t x service d t o bus specification v2 scope station based on the context it is used

func (*PTXServiceDTOBusSpecificationV2ScopeStation) MarshalBinary added in v0.11.0

func (m *PTXServiceDTOBusSpecificationV2ScopeStation) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2ScopeStation) UnmarshalBinary added in v0.11.0

func (m *PTXServiceDTOBusSpecificationV2ScopeStation) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2ScopeStation) Validate added in v0.11.0

Validate validates this p t x service d t o bus specification v2 scope station

type PTXServiceDTOBusSpecificationV2ScopeStop added in v0.11.0

type PTXServiceDTOBusSpecificationV2ScopeStop struct {

	// String
	//
	// 站位代碼
	StationID string `json:"StationID,omitempty" xml:"String,omitempty"`

	// String
	//
	// 地區既用中之站牌代碼(為原資料內碼)
	StopID string `json:"StopID,omitempty" xml:"String,omitempty"`

	// NameType
	//
	// 站牌名稱
	StopName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"StopName,omitempty" xml:"NameType,omitempty"`
}

PTXServiceDTOBusSpecificationV2ScopeStop Stop

站牌資料

swagger:model PTX.Service.DTO.Bus.Specification.V2.Scope+Stop

func (*PTXServiceDTOBusSpecificationV2ScopeStop) ContextValidate added in v0.11.0

ContextValidate validate this p t x service d t o bus specification v2 scope stop based on the context it is used

func (*PTXServiceDTOBusSpecificationV2ScopeStop) MarshalBinary added in v0.11.0

func (m *PTXServiceDTOBusSpecificationV2ScopeStop) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2ScopeStop) UnmarshalBinary added in v0.11.0

func (m *PTXServiceDTOBusSpecificationV2ScopeStop) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2ScopeStop) Validate added in v0.11.0

Validate validates this p t x service d t o bus specification v2 scope stop

type PTXServiceDTOBusSpecificationV2ScopeSubRoute added in v0.11.0

type PTXServiceDTOBusSpecificationV2ScopeSubRoute struct {

	// Int32
	//
	// 影響方向 : [0:'去程',1:'返程',2:'迴圈',255:'未知']
	Direction int64 `json:"Direction,omitempty"`

	// String
	//
	// 地區既用中之附屬班次代碼(為原資料內碼)
	SubRouteID string `json:"SubRouteID,omitempty" xml:"String,omitempty"`

	// NameType
	//
	// 附屬路線名稱
	SubRouteName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"SubRouteName,omitempty" xml:"NameType,omitempty"`
}

PTXServiceDTOBusSpecificationV2ScopeSubRoute SubRoute

附屬路線資料

swagger:model PTX.Service.DTO.Bus.Specification.V2.Scope+SubRoute

func (*PTXServiceDTOBusSpecificationV2ScopeSubRoute) ContextValidate added in v0.11.0

ContextValidate validate this p t x service d t o bus specification v2 scope sub route based on the context it is used

func (*PTXServiceDTOBusSpecificationV2ScopeSubRoute) MarshalBinary added in v0.11.0

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2ScopeSubRoute) UnmarshalBinary added in v0.11.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2ScopeSubRoute) Validate added in v0.11.0

Validate validates this p t x service d t o bus specification v2 scope sub route

type PTXServiceDTOBusSpecificationV2ScopeTrip added in v0.11.0

type PTXServiceDTOBusSpecificationV2ScopeTrip struct {

	// Int32
	//
	// 影響方向 : [0:'去程',1:'返程',2:'迴圈',255:'未知']
	Direction int64 `json:"Direction,omitempty"`

	// String
	//
	// 地區既用中之班次代碼(為原資料內碼)
	RouteID string `json:"RouteID,omitempty" xml:"String,omitempty"`

	// String
	//
	// 地區既用中之附屬班次代碼(為原資料內碼)
	SubRouteID string `json:"SubRouteID,omitempty" xml:"String,omitempty"`

	// String
	//
	// 首站發車時間(HH:mm)
	TripDepTime string `json:"TripDepTime,omitempty" xml:"String,omitempty"`

	// String
	//
	// 地區既用中之班次代碼(為原資料內碼)
	TripID string `json:"TripID,omitempty" xml:"String,omitempty"`
}

PTXServiceDTOBusSpecificationV2ScopeTrip Trip

班次代碼資料

swagger:model PTX.Service.DTO.Bus.Specification.V2.Scope+Trip

func (*PTXServiceDTOBusSpecificationV2ScopeTrip) ContextValidate added in v0.11.0

ContextValidate validates this p t x service d t o bus specification v2 scope trip based on context it is used

func (*PTXServiceDTOBusSpecificationV2ScopeTrip) MarshalBinary added in v0.11.0

func (m *PTXServiceDTOBusSpecificationV2ScopeTrip) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2ScopeTrip) UnmarshalBinary added in v0.11.0

func (m *PTXServiceDTOBusSpecificationV2ScopeTrip) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2ScopeTrip) Validate added in v0.11.0

Validate validates this p t x service d t o bus specification v2 scope trip

type PTXServiceDTOBusSpecificationV2SectionFare added in v0.7.0

type PTXServiceDTOBusSpecificationV2SectionFare struct {

	// Array
	//
	// 緩衝區資訊
	// Required: true
	BufferZones []*PTXServiceDTOBusSpecificationV2SectionFareBufferZone "json:\"BufferZones\" xml:\"List`1\""

	// Array
	//
	// 每段收費資訊
	// Required: true
	Fares []*PTXServiceDTOBusSpecificationV2BusRouteFareFare "json:\"Fares\" xml:\"List`1\""
}

PTXServiceDTOBusSpecificationV2SectionFare SectionFare

段次計費

swagger:model PTX.Service.DTO.Bus.Specification.V2.SectionFare

func (*PTXServiceDTOBusSpecificationV2SectionFare) ContextValidate added in v0.9.0

ContextValidate validate this p t x service d t o bus specification v2 section fare based on the context it is used

func (*PTXServiceDTOBusSpecificationV2SectionFare) MarshalBinary added in v0.7.0

func (m *PTXServiceDTOBusSpecificationV2SectionFare) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2SectionFare) UnmarshalBinary added in v0.7.0

func (m *PTXServiceDTOBusSpecificationV2SectionFare) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2SectionFare) Validate added in v0.7.0

Validate validates this p t x service d t o bus specification v2 section fare

type PTXServiceDTOBusSpecificationV2SectionFareBufferZone added in v0.7.0

type PTXServiceDTOBusSpecificationV2SectionFareBufferZone struct {

	// String
	//
	// 收費緩衝區描述
	BufferZoneDescription string `json:"BufferZoneDescription,omitempty" xml:"String,omitempty"`

	// Int32
	//
	// 方向性描述 : [0:'去程',1:'返程',2:'迴圈',255:'未知']
	// Required: true
	Direction *int64 `json:"Direction"`

	// Stop
	//
	// 緩衝區訖點
	// Required: true
	FareBufferZoneDestination struct {
		PTXServiceDTOBusSpecificationV2BusRouteFareStop
	} `json:"FareBufferZoneDestination" xml:"Stop"`

	// Stop
	//
	// 緩衝區起點
	// Required: true
	FareBufferZoneOrigin struct {
		PTXServiceDTOBusSpecificationV2BusRouteFareStop
	} `json:"FareBufferZoneOrigin" xml:"Stop"`

	// Int32
	//
	// 緩衝區順序
	// Required: true
	SectionSequence *int32 `json:"SectionSequence"`

	// String
	//
	// 緩衝區代號
	ZoneID string `json:"ZoneID,omitempty" xml:"String,omitempty"`
}

PTXServiceDTOBusSpecificationV2SectionFareBufferZone BufferZone

swagger:model PTX.Service.DTO.Bus.Specification.V2.SectionFare+BufferZone

func (*PTXServiceDTOBusSpecificationV2SectionFareBufferZone) ContextValidate added in v0.9.0

ContextValidate validate this p t x service d t o bus specification v2 section fare buffer zone based on the context it is used

func (*PTXServiceDTOBusSpecificationV2SectionFareBufferZone) MarshalBinary added in v0.7.0

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2SectionFareBufferZone) UnmarshalBinary added in v0.7.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2SectionFareBufferZone) Validate added in v0.7.0

Validate validates this p t x service d t o bus specification v2 section fare buffer zone

type PTXServiceDTOBusSpecificationV2ServiceTime added in v0.9.0

type PTXServiceDTOBusSpecificationV2ServiceTime struct {

	// Int32
	//
	// 結束時區(小時)
	// Required: true
	EndHour *int32 `json:"EndHour"`

	// Array
	//
	// 站間行駛時間資訊
	// Required: true
	S2STimes []*PTXServiceDTOBusSpecificationV2TravelTime "json:\"S2STimes\" xml:\"List`1\""

	// Int32
	//
	// 起始時區(小時)
	// Required: true
	StartHour *int32 `json:"StartHour"`

	// Int32
	//
	// 星期 : [0:星期日, 1:星期一, 2:星期二, 3:星期三, 4:星期四, 5:星期五, 6:星期六, 99:不分星期]
	// Required: true
	Weekday *int32 `json:"Weekday"`
}

PTXServiceDTOBusSpecificationV2ServiceTime ServiceTime

行駛時間資料型別

swagger:model PTX.Service.DTO.Bus.Specification.V2.ServiceTime

func (*PTXServiceDTOBusSpecificationV2ServiceTime) ContextValidate added in v0.9.0

ContextValidate validate this p t x service d t o bus specification v2 service time based on the context it is used

func (*PTXServiceDTOBusSpecificationV2ServiceTime) MarshalBinary added in v0.9.0

func (m *PTXServiceDTOBusSpecificationV2ServiceTime) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2ServiceTime) UnmarshalBinary added in v0.9.0

func (m *PTXServiceDTOBusSpecificationV2ServiceTime) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2ServiceTime) Validate added in v0.9.0

Validate validates this p t x service d t o bus specification v2 service time

type PTXServiceDTOBusSpecificationV2SpecialDay added in v0.7.0

type PTXServiceDTOBusSpecificationV2SpecialDay struct {

	// DatePeriod
	//
	// 連續特殊日期
	DatePeriod struct {
		PTXServiceDTOBusSpecificationV2DatePeriod
	} `json:"DatePeriod,omitempty" xml:"DatePeriod,omitempty"`

	// Array
	//
	// 不連續特殊日期
	Dates []string "json:\"Dates\" xml:\"List`1\""

	// String
	//
	// 特殊營運描述
	Description string `json:"Description,omitempty" xml:"String,omitempty"`

	// Int32
	//
	// 營運服務狀態代碼 : [0:'正常營運',1:'加班營運',2:'取消/停駛營運']
	ServiceStatus int64 `json:"ServiceStatus,omitempty"`
}

PTXServiceDTOBusSpecificationV2SpecialDay SpecialDay

特殊營運日資料

swagger:model PTX.Service.DTO.Bus.Specification.V2.SpecialDay

func (*PTXServiceDTOBusSpecificationV2SpecialDay) ContextValidate added in v0.9.0

ContextValidate validate this p t x service d t o bus specification v2 special day based on the context it is used

func (*PTXServiceDTOBusSpecificationV2SpecialDay) MarshalBinary added in v0.7.0

func (m *PTXServiceDTOBusSpecificationV2SpecialDay) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2SpecialDay) UnmarshalBinary added in v0.7.0

func (m *PTXServiceDTOBusSpecificationV2SpecialDay) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2SpecialDay) Validate added in v0.7.0

Validate validates this p t x service d t o bus specification v2 special day

type PTXServiceDTOBusSpecificationV2StationStop added in v0.7.0

type PTXServiceDTOBusSpecificationV2StationStop struct {

	// String
	//
	// 地區既用中之路線代碼(為原資料內碼)
	// Required: true
	RouteID *string `json:"RouteID" xml:"String"`

	// NameType
	//
	// 路線名稱
	// Required: true
	RouteName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"RouteName" xml:"NameType"`

	// String
	//
	// 路線唯一識別代碼,規則為 {業管機關簡碼} + {RouteID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
	// Required: true
	RouteUID *string `json:"RouteUID" xml:"String"`

	// String
	//
	// 地區既用中之站牌代碼(為原資料內碼)
	// Required: true
	StopID *string `json:"StopID" xml:"String"`

	// NameType
	//
	// 站牌名稱
	// Required: true
	StopName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"StopName" xml:"NameType"`

	// String
	//
	// 站牌唯一識別代碼,規則為 {業管機關簡碼} + {StopID},其中 {業管機關簡碼} 可於Authority API中的AuthorityCode欄位查詢
	// Required: true
	StopUID *string `json:"StopUID" xml:"String"`
}

PTXServiceDTOBusSpecificationV2StationStop StationStop

站牌與路線資料型別

swagger:model PTX.Service.DTO.Bus.Specification.V2.StationStop

func (*PTXServiceDTOBusSpecificationV2StationStop) ContextValidate added in v0.9.0

ContextValidate validate this p t x service d t o bus specification v2 station stop based on the context it is used

func (*PTXServiceDTOBusSpecificationV2StationStop) MarshalBinary added in v0.7.0

func (m *PTXServiceDTOBusSpecificationV2StationStop) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2StationStop) UnmarshalBinary added in v0.7.0

func (m *PTXServiceDTOBusSpecificationV2StationStop) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2StationStop) Validate added in v0.7.0

Validate validates this p t x service d t o bus specification v2 station stop

type PTXServiceDTOBusSpecificationV2TravelTime added in v0.9.0

type PTXServiceDTOBusSpecificationV2TravelTime struct {

	// String
	//
	// 起始站位代碼
	// Required: true
	FromStationID *string `json:"FromStationID" xml:"String"`

	// String
	//
	// 起始站牌代碼
	// Required: true
	FromStopID *string `json:"FromStopID" xml:"String"`

	// Int32
	//
	// 站間預估行駛時間 [當RunTime值為-1時,代表該區間無提供旅行時間資料。]
	// Required: true
	RunTime *int32 `json:"RunTime"`

	// String
	//
	// 終點站位代碼
	// Required: true
	ToStationID *string `json:"ToStationID" xml:"String"`

	// String
	//
	// 終點站牌代碼
	// Required: true
	ToStopID *string `json:"ToStopID" xml:"String"`
}

PTXServiceDTOBusSpecificationV2TravelTime TravelTime

swagger:model PTX.Service.DTO.Bus.Specification.V2.TravelTime

func (*PTXServiceDTOBusSpecificationV2TravelTime) ContextValidate added in v0.9.0

ContextValidate validates this p t x service d t o bus specification v2 travel time based on context it is used

func (*PTXServiceDTOBusSpecificationV2TravelTime) MarshalBinary added in v0.9.0

func (m *PTXServiceDTOBusSpecificationV2TravelTime) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2TravelTime) UnmarshalBinary added in v0.9.0

func (m *PTXServiceDTOBusSpecificationV2TravelTime) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PTXServiceDTOBusSpecificationV2TravelTime) Validate added in v0.9.0

Validate validates this p t x service d t o bus specification v2 travel time

type PTXServiceDTOSharedSpecificationV2BaseNameType added in v0.7.0

type PTXServiceDTOSharedSpecificationV2BaseNameType struct {

	// String
	//
	// 英文名稱
	En string `json:"En,omitempty" xml:"String,omitempty"`

	// String
	//
	// 中文繁體名稱
	ZhTw string `json:"Zh_tw,omitempty" xml:"String,omitempty"`
}

PTXServiceDTOSharedSpecificationV2BaseNameType NameType

名稱資料型別

swagger:model PTX.Service.DTO.Shared.Specification.V2.Base.NameType

func (*PTXServiceDTOSharedSpecificationV2BaseNameType) ContextValidate added in v0.9.0

ContextValidate validates this p t x service d t o shared specification v2 base name type based on context it is used

func (*PTXServiceDTOSharedSpecificationV2BaseNameType) MarshalBinary added in v0.7.0

MarshalBinary interface implementation

func (*PTXServiceDTOSharedSpecificationV2BaseNameType) UnmarshalBinary added in v0.7.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOSharedSpecificationV2BaseNameType) Validate added in v0.7.0

Validate validates this p t x service d t o shared specification v2 base name type

type PTXServiceDTOSharedSpecificationV2BaseOperator added in v0.7.0

type PTXServiceDTOSharedSpecificationV2BaseOperator struct {

	// String
	//
	// 營運業者業管機關簡碼(對於於公路客運/國道客運而言為THB)
	// Required: true
	AuthorityCode *string `json:"AuthorityCode" xml:"String"`

	// String
	//
	// 營運業者簡碼
	// Required: true
	OperatorCode *string `json:"OperatorCode" xml:"String"`

	// String
	//
	// 營運業者電子信箱
	OperatorEmail string `json:"OperatorEmail,omitempty" xml:"String,omitempty"`

	// String
	//
	// 營運業者代碼
	// Required: true
	OperatorID *string `json:"OperatorID" xml:"String"`

	// NameType
	//
	// 營運業者名稱
	// Required: true
	OperatorName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"OperatorName" xml:"NameType"`

	// String
	//
	// 營運業者編號[交通部票證資料系統定義]
	// Required: true
	OperatorNo *string `json:"OperatorNo" xml:"String"`

	// String
	//
	// 營運業者連絡電話
	OperatorPhone string `json:"OperatorPhone,omitempty" xml:"String,omitempty"`

	// String
	//
	// 營運業者網址鏈結
	OperatorURL string `json:"OperatorUrl,omitempty" xml:"String,omitempty"`

	// String
	//
	// 資料提供平台代碼
	// Required: true
	ProviderID *string `json:"ProviderID" xml:"String"`

	// String
	//
	// 訂票連絡電話
	ReservationPhone string `json:"ReservationPhone,omitempty" xml:"String,omitempty"`

	// String
	//
	// 訂票網址鏈結
	ReservationURL string `json:"ReservationUrl,omitempty" xml:"String,omitempty"`

	// String
	//
	// 營運業者所屬業管子機關簡碼(對於公路客運/國道客運路線而言為區監理所如THB-VO10-1..等)
	SubAuthorityCode string `json:"SubAuthorityCode,omitempty" xml:"String,omitempty"`

	// DateTime
	//
	// 資料更新日期時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
	// Required: true
	// Format: date-time
	UpdateTime *strfmt.DateTime `json:"UpdateTime"`
}

PTXServiceDTOSharedSpecificationV2BaseOperator Operator

營運業者資料型別

swagger:model PTX.Service.DTO.Shared.Specification.V2.Base.Operator

func (*PTXServiceDTOSharedSpecificationV2BaseOperator) ContextValidate added in v0.9.0

ContextValidate validate this p t x service d t o shared specification v2 base operator based on the context it is used

func (*PTXServiceDTOSharedSpecificationV2BaseOperator) MarshalBinary added in v0.7.0

MarshalBinary interface implementation

func (*PTXServiceDTOSharedSpecificationV2BaseOperator) UnmarshalBinary added in v0.7.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOSharedSpecificationV2BaseOperator) Validate added in v0.7.0

Validate validates this p t x service d t o shared specification v2 base operator

type PTXServiceDTOSharedSpecificationV2BasePointType added in v0.7.0

type PTXServiceDTOSharedSpecificationV2BasePointType struct {

	// String
	//
	// 地理空間編碼
	GeoHash string `json:"GeoHash,omitempty" xml:"String,omitempty"`

	// 位置緯度(WGS84)
	PositionLat float64 `json:"PositionLat,omitempty"`

	// 位置經度(WGS84)
	PositionLon float64 `json:"PositionLon,omitempty"`
}

PTXServiceDTOSharedSpecificationV2BasePointType PointType

座標資料型別

swagger:model PTX.Service.DTO.Shared.Specification.V2.Base.PointType

func (*PTXServiceDTOSharedSpecificationV2BasePointType) ContextValidate added in v0.9.0

ContextValidate validates this p t x service d t o shared specification v2 base point type based on context it is used

func (*PTXServiceDTOSharedSpecificationV2BasePointType) MarshalBinary added in v0.7.0

MarshalBinary interface implementation

func (*PTXServiceDTOSharedSpecificationV2BasePointType) UnmarshalBinary added in v0.7.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOSharedSpecificationV2BasePointType) Validate added in v0.7.0

Validate validates this p t x service d t o shared specification v2 base point type

type PTXServiceDTOSharedSpecificationV3BaseDisplayHealth added in v0.7.0

type PTXServiceDTOSharedSpecificationV3BaseDisplayHealth struct {

	// Inbound
	//
	// 本平台資料來源轉入狀態
	Inbound struct {
		PTXServiceDTOSharedSpecificationV3BaseInbound
	} `json:"Inbound,omitempty" xml:"Inbound,omitempty"`

	// Outbound
	//
	// 本平台API狀態
	Outbound struct {
		PTXServiceDTOSharedSpecificationV3BaseOutbound
	} `json:"Outbound,omitempty" xml:"Outbound,omitempty"`

	// String
	//
	// API服務代碼
	// Required: true
	ServiceID *string `json:"ServiceID" xml:"String"`

	// String
	//
	// API服務中文名稱
	// Required: true
	ServiceName *string `json:"ServiceName" xml:"String"`
}

PTXServiceDTOSharedSpecificationV3BaseDisplayHealth DisplayHealth

API服務健康狀態

swagger:model PTX.Service.DTO.Shared.Specification.V3.Base.DisplayHealth

func (*PTXServiceDTOSharedSpecificationV3BaseDisplayHealth) ContextValidate added in v0.9.0

ContextValidate validate this p t x service d t o shared specification v3 base display health based on the context it is used

func (*PTXServiceDTOSharedSpecificationV3BaseDisplayHealth) MarshalBinary added in v0.7.0

MarshalBinary interface implementation

func (*PTXServiceDTOSharedSpecificationV3BaseDisplayHealth) UnmarshalBinary added in v0.7.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOSharedSpecificationV3BaseDisplayHealth) Validate added in v0.7.0

Validate validates this p t x service d t o shared specification v3 base display health

type PTXServiceDTOSharedSpecificationV3BaseInbound added in v0.7.0

type PTXServiceDTOSharedSpecificationV3BaseInbound struct {

	// DateTime
	//
	// 檢核時間
	// Required: true
	// Format: date-time
	CheckTime *strfmt.DateTime `json:"CheckTime"`

	// String
	//
	// 檢核失敗原因
	Reason string `json:"Reason,omitempty" xml:"String,omitempty"`

	// Int32
	//
	// 檢核結果狀態 : [0:'失敗',1:'成功']
	// Required: true
	Status *int64 `json:"Status"`
}

PTXServiceDTOSharedSpecificationV3BaseInbound Inbound

本平台資料來源轉入狀態

swagger:model PTX.Service.DTO.Shared.Specification.V3.Base.Inbound

func (*PTXServiceDTOSharedSpecificationV3BaseInbound) ContextValidate added in v0.9.0

ContextValidate validates this p t x service d t o shared specification v3 base inbound based on context it is used

func (*PTXServiceDTOSharedSpecificationV3BaseInbound) MarshalBinary added in v0.7.0

MarshalBinary interface implementation

func (*PTXServiceDTOSharedSpecificationV3BaseInbound) UnmarshalBinary added in v0.7.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOSharedSpecificationV3BaseInbound) Validate added in v0.7.0

Validate validates this p t x service d t o shared specification v3 base inbound

type PTXServiceDTOSharedSpecificationV3BaseOutbound added in v0.7.0

type PTXServiceDTOSharedSpecificationV3BaseOutbound struct {

	// DateTime
	//
	// 檢核時間
	// Required: true
	// Format: date-time
	CheckTime *strfmt.DateTime `json:"CheckTime"`

	// String
	//
	// 檢核失敗原因
	Reason string `json:"Reason,omitempty" xml:"String,omitempty"`

	// Int32
	//
	// 檢核結果狀態 : [0:'失敗',1:'成功']
	// Required: true
	Status *int64 `json:"Status"`
}

PTXServiceDTOSharedSpecificationV3BaseOutbound Outbound

本平台API狀態

swagger:model PTX.Service.DTO.Shared.Specification.V3.Base.Outbound

func (*PTXServiceDTOSharedSpecificationV3BaseOutbound) ContextValidate added in v0.9.0

ContextValidate validates this p t x service d t o shared specification v3 base outbound based on context it is used

func (*PTXServiceDTOSharedSpecificationV3BaseOutbound) MarshalBinary added in v0.7.0

MarshalBinary interface implementation

func (*PTXServiceDTOSharedSpecificationV3BaseOutbound) UnmarshalBinary added in v0.7.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOSharedSpecificationV3BaseOutbound) Validate added in v0.7.0

Validate validates this p t x service d t o shared specification v3 base outbound

Source Files

Jump to

Keyboard shortcuts

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