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 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 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.13.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.13.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.13.0

MarshalBinary interface implementation

func (*PTXServiceDTOSharedSpecificationV3BaseDisplayHealth) UnmarshalBinary added in v0.13.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOSharedSpecificationV3BaseDisplayHealth) Validate added in v0.13.0

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

type PTXServiceDTOSharedSpecificationV3BaseInbound added in v0.13.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.13.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.13.0

MarshalBinary interface implementation

func (*PTXServiceDTOSharedSpecificationV3BaseInbound) UnmarshalBinary added in v0.13.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOSharedSpecificationV3BaseInbound) Validate added in v0.13.0

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

type PTXServiceDTOSharedSpecificationV3BaseOutbound added in v0.13.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.13.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.13.0

MarshalBinary interface implementation

func (*PTXServiceDTOSharedSpecificationV3BaseOutbound) UnmarshalBinary added in v0.13.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOSharedSpecificationV3BaseOutbound) Validate added in v0.13.0

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

type PTXServiceDTOTourismSpecificationV2ActivityTourismInfo added in v0.7.0

type PTXServiceDTOTourismSpecificationV2ActivityTourismInfo struct {

	// String
	//
	// 活動訊息代碼
	// Required: true
	ActivityID *string `json:"ActivityID" xml:"String"`

	// String
	//
	// 活動名稱
	ActivityName string `json:"ActivityName,omitempty" xml:"String,omitempty"`

	// String
	//
	// 主要活動地點地址
	Address string `json:"Address,omitempty" xml:"String,omitempty"`

	// String
	//
	// 費用標示
	Charge string `json:"Charge,omitempty" xml:"String,omitempty"`

	// String
	//
	// 所屬縣市
	City string `json:"City,omitempty" xml:"String,omitempty"`

	// String
	//
	// 活動分類1
	Class1 string `json:"Class1,omitempty" xml:"String,omitempty"`

	// String
	//
	// 活動分類2
	Class2 string `json:"Class2,omitempty" xml:"String,omitempty"`

	// String
	//
	// 週期性活動執行時間
	Cycle string `json:"Cycle,omitempty" xml:"String,omitempty"`

	// String
	//
	// 活動簡述
	Description string `json:"Description,omitempty" xml:"String,omitempty"`

	// 活動結束時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
	// Format: date-time
	EndTime strfmt.DateTime `json:"EndTime,omitempty"`

	// String
	//
	// 主要活動地點名稱
	Location string `json:"Location,omitempty" xml:"String,omitempty"`

	// String
	//
	// 活動地圖/簡圖連結網址
	MapURL string `json:"MapUrl,omitempty" xml:"String,omitempty"`

	// String
	//
	// 非週期性活動執行時間
	NonCycle string `json:"NonCycle,omitempty" xml:"String,omitempty"`

	// String
	//
	// 活動主辦單位
	Organizer string `json:"Organizer,omitempty" xml:"String,omitempty"`

	// String
	//
	// 停車資訊
	ParkingInfo string `json:"ParkingInfo,omitempty" xml:"String,omitempty"`

	// String
	//
	// 活動參與對象
	Particpation string `json:"Particpation,omitempty" xml:"String,omitempty"`

	// String
	//
	// 活動聯絡電話
	Phone string `json:"Phone,omitempty" xml:"String,omitempty"`

	// TourismPicture
	//
	// 活動照片
	Picture struct {
		PTXServiceDTOTourismSpecificationV2TourismPicture
	} `json:"Picture,omitempty" xml:"TourismPicture,omitempty"`

	// PointType
	//
	// 活動位置
	Position struct {
		PTXServiceDTOSharedSpecificationV2BasePointType
	} `json:"Position,omitempty" xml:"PointType,omitempty"`

	// String
	//
	// 備註(其他活動相關事項)
	Remarks string `json:"Remarks,omitempty" xml:"String,omitempty"`

	// 觀光局檔案更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
	// Required: true
	// Format: date-time
	SrcUpdateTime *strfmt.DateTime `json:"SrcUpdateTime"`

	// 活動開始時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
	// Format: date-time
	StartTime strfmt.DateTime `json:"StartTime,omitempty"`

	// String
	//
	// 交通資訊
	TravelInfo string `json:"TravelInfo,omitempty" xml:"String,omitempty"`

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

	// String
	//
	// 活動網址
	WebsiteURL string `json:"WebsiteUrl,omitempty" xml:"String,omitempty"`
}

PTXServiceDTOTourismSpecificationV2ActivityTourismInfo ActivityTourismInfo

取得觀光活動資料

swagger:model PTX.Service.DTO.Tourism.Specification.V2.ActivityTourismInfo

func (*PTXServiceDTOTourismSpecificationV2ActivityTourismInfo) ContextValidate added in v0.9.0

ContextValidate validate this p t x service d t o tourism specification v2 activity tourism info based on the context it is used

func (*PTXServiceDTOTourismSpecificationV2ActivityTourismInfo) MarshalBinary added in v0.7.0

MarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2ActivityTourismInfo) UnmarshalBinary added in v0.7.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2ActivityTourismInfo) Validate added in v0.7.0

Validate validates this p t x service d t o tourism specification v2 activity tourism info

type PTXServiceDTOTourismSpecificationV2BusA1Data added in v0.7.0

type PTXServiceDTOTourismSpecificationV2BusA1Data struct {

	// 方位角
	// Required: true
	Azimuth *float64 `json:"Azimuth"`

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

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

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

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

	// 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"`

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

	// 行駛速度(kph)
	// Required: true
	Speed *float64 `json:"Speed"`

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

	// NameType
	//
	// 台灣好行路線名稱
	TaiwanTripName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"TaiwanTripName,omitempty" xml:"NameType,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"`
}

PTXServiceDTOTourismSpecificationV2BusA1Data BusA1Data

定時車機資料型別

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

func (*PTXServiceDTOTourismSpecificationV2BusA1Data) ContextValidate added in v0.9.0

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

func (*PTXServiceDTOTourismSpecificationV2BusA1Data) MarshalBinary added in v0.7.0

MarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2BusA1Data) UnmarshalBinary added in v0.7.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2BusA1Data) Validate added in v0.7.0

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

type PTXServiceDTOTourismSpecificationV2BusA2Data added in v0.7.0

type PTXServiceDTOTourismSpecificationV2BusA2Data 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)
	// 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"`

	// 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
	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"`

	// String
	//
	// 站牌唯一識別代碼,規則為 {平台代碼} + {StopID},其中 {平台代碼} 可於Provider API中的ProviderCode欄位查詢
	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"`

	// NameType
	//
	// 台灣好行路線名稱
	TaiwanTripName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"TaiwanTripName,omitempty" xml:"NameType,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"`
}

PTXServiceDTOTourismSpecificationV2BusA2Data BusA2Data

定點車機資料型別

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

func (*PTXServiceDTOTourismSpecificationV2BusA2Data) ContextValidate added in v0.9.0

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

func (*PTXServiceDTOTourismSpecificationV2BusA2Data) MarshalBinary added in v0.7.0

MarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2BusA2Data) UnmarshalBinary added in v0.7.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2BusA2Data) Validate added in v0.7.0

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

type PTXServiceDTOTourismSpecificationV2BusFrequency added in v0.9.0

type PTXServiceDTOTourismSpecificationV2BusFrequency 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 {
		PTXServiceDTOTourismSpecificationV2ServiceDay
	} `json:"ServiceDay,omitempty" xml:"ServiceDay,omitempty"`

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

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

PTXServiceDTOTourismSpecificationV2BusFrequency BusFrequency

發車班距資料

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

func (*PTXServiceDTOTourismSpecificationV2BusFrequency) ContextValidate added in v0.9.0

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

func (*PTXServiceDTOTourismSpecificationV2BusFrequency) MarshalBinary added in v0.9.0

MarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2BusFrequency) UnmarshalBinary added in v0.9.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2BusFrequency) Validate added in v0.9.0

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

type PTXServiceDTOTourismSpecificationV2BusN1EstimateTime added in v0.7.0

type PTXServiceDTOTourismSpecificationV2BusN1EstimateTime struct {

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

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

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

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

	// 是否為末班車
	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
	//
	// 車牌號碼
	PlateNumb string `json:"PlateNumb,omitempty" xml:"String,omitempty"`

	// String
	//
	// 地區既用中之路線代碼(為原資料內碼)
	RouteID string `json:"RouteID,omitempty" xml:"String,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
	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"`

	// 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"`

	// NameType
	//
	// 台灣好行路線名稱
	TaiwanTripName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"TaiwanTripName,omitempty" xml:"NameType,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"`
}

PTXServiceDTOTourismSpecificationV2BusN1EstimateTime BusN1EstimateTime

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

func (*PTXServiceDTOTourismSpecificationV2BusN1EstimateTime) ContextValidate added in v0.9.0

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

func (*PTXServiceDTOTourismSpecificationV2BusN1EstimateTime) MarshalBinary added in v0.7.0

MarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2BusN1EstimateTime) UnmarshalBinary added in v0.7.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2BusN1EstimateTime) Validate added in v0.7.0

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

type PTXServiceDTOTourismSpecificationV2BusRoute added in v0.7.0

type PTXServiceDTOTourismSpecificationV2BusRoute 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"`

	// String
	//
	// 路線公車動態資訊網址
	LiveBusURL string `json:"LiveBusUrl,omitempty" xml:"String,omitempty"`

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

	// Array
	//
	// 營運業者
	// Required: true
	Operators []*PTXServiceDTOTourismSpecificationV2RouteOperator "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"`

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

	// String
	//
	// 路線資訊說明網址
	RouteURL string `json:"RouteUrl,omitempty" xml:"String,omitempty"`

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

	// NameType
	//
	// 台灣好行路線名稱
	// Required: true
	TaiwanTripName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"TaiwanTripName" xml:"NameType"`

	// 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"`
}

PTXServiceDTOTourismSpecificationV2BusRoute BusRoute

路線資料型別

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

func (*PTXServiceDTOTourismSpecificationV2BusRoute) ContextValidate added in v0.9.0

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

func (*PTXServiceDTOTourismSpecificationV2BusRoute) MarshalBinary added in v0.7.0

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

MarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2BusRoute) UnmarshalBinary added in v0.7.0

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

UnmarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2BusRoute) Validate added in v0.7.0

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

type PTXServiceDTOTourismSpecificationV2BusSchedule added in v0.7.0

type PTXServiceDTOTourismSpecificationV2BusSchedule struct {

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

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

	// 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"`

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

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

	// NameType
	//
	// 台灣好行路線名稱
	// Required: true
	TaiwanTripName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"TaiwanTripName" xml:"NameType"`

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

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

PTXServiceDTOTourismSpecificationV2BusSchedule BusSchedule

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

func (*PTXServiceDTOTourismSpecificationV2BusSchedule) ContextValidate added in v0.9.0

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

func (*PTXServiceDTOTourismSpecificationV2BusSchedule) MarshalBinary added in v0.7.0

MarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2BusSchedule) UnmarshalBinary added in v0.7.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2BusSchedule) Validate added in v0.7.0

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

type PTXServiceDTOTourismSpecificationV2BusStopOfRoute added in v0.7.0

type PTXServiceDTOTourismSpecificationV2BusStopOfRoute struct {

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

	// Boolean
	//
	// 是否為主路線
	// Required: true
	KeyPattern *bool `json:"KeyPattern"`

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

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

	// Array
	//
	// 所有經過站牌
	// Required: true
	Stops []*PTXServiceDTOTourismSpecificationV2Stop "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"`

	// NameType
	//
	// 台灣好行路線名稱
	// Required: true
	TaiwanTripName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"TaiwanTripName" xml:"NameType"`

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

PTXServiceDTOTourismSpecificationV2BusStopOfRoute BusStopOfRoute

路線與站牌對應資料

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

func (*PTXServiceDTOTourismSpecificationV2BusStopOfRoute) ContextValidate added in v0.9.0

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

func (*PTXServiceDTOTourismSpecificationV2BusStopOfRoute) MarshalBinary added in v0.7.0

MarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2BusStopOfRoute) UnmarshalBinary added in v0.7.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2BusStopOfRoute) Validate added in v0.7.0

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

type PTXServiceDTOTourismSpecificationV2BusStopTime added in v0.9.0

type PTXServiceDTOTourismSpecificationV2BusStopTime 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"`
}

PTXServiceDTOTourismSpecificationV2BusStopTime BusStopTime

公車停靠時間資料

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

func (*PTXServiceDTOTourismSpecificationV2BusStopTime) ContextValidate added in v0.9.0

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

func (*PTXServiceDTOTourismSpecificationV2BusStopTime) MarshalBinary added in v0.9.0

MarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2BusStopTime) UnmarshalBinary added in v0.9.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2BusStopTime) Validate added in v0.9.0

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

type PTXServiceDTOTourismSpecificationV2BusSubRoute added in v0.9.0

type PTXServiceDTOTourismSpecificationV2BusSubRoute 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"`
}

PTXServiceDTOTourismSpecificationV2BusSubRoute BusSubRoute

附屬路線資料型別

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

func (*PTXServiceDTOTourismSpecificationV2BusSubRoute) ContextValidate added in v0.9.0

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

func (*PTXServiceDTOTourismSpecificationV2BusSubRoute) MarshalBinary added in v0.9.0

MarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2BusSubRoute) UnmarshalBinary added in v0.9.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2BusSubRoute) Validate added in v0.9.0

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

type PTXServiceDTOTourismSpecificationV2BusTaiwanTripNews added in v0.7.0

type PTXServiceDTOTourismSpecificationV2BusTaiwanTripNews struct {

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

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

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

	// String
	//
	// 消息類別
	NewsCategory string `json:"NewsCategory,omitempty" xml:"String,omitempty"`

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

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

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

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

	// 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"`
}

PTXServiceDTOTourismSpecificationV2BusTaiwanTripNews BusTaiwanTripNews

台灣好行最新消息資料

swagger:model PTX.Service.DTO.Tourism.Specification.V2.BusTaiwanTripNews

func (*PTXServiceDTOTourismSpecificationV2BusTaiwanTripNews) ContextValidate added in v0.9.0

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

func (*PTXServiceDTOTourismSpecificationV2BusTaiwanTripNews) MarshalBinary added in v0.7.0

MarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2BusTaiwanTripNews) UnmarshalBinary added in v0.7.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2BusTaiwanTripNews) Validate added in v0.7.0

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

type PTXServiceDTOTourismSpecificationV2BusTaiwanTripS2STravelTime added in v0.7.0

type PTXServiceDTOTourismSpecificationV2BusTaiwanTripS2STravelTime struct {

	// String
	//
	// 路線代碼
	// Required: true
	RouteID *string `json:"RouteID" xml:"String"`

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

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

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

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

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

PTXServiceDTOTourismSpecificationV2BusTaiwanTripS2STravelTime BusTaiwanTripS2STravelTime

swagger:model PTX.Service.DTO.Tourism.Specification.V2.BusTaiwanTripS2STravelTime

func (*PTXServiceDTOTourismSpecificationV2BusTaiwanTripS2STravelTime) ContextValidate added in v0.9.0

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

func (*PTXServiceDTOTourismSpecificationV2BusTaiwanTripS2STravelTime) MarshalBinary added in v0.7.0

MarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2BusTaiwanTripS2STravelTime) UnmarshalBinary added in v0.7.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2BusTaiwanTripS2STravelTime) Validate added in v0.7.0

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

type PTXServiceDTOTourismSpecificationV2BusTaiwanTripS2STravelTimeTravelTime added in v0.7.0

type PTXServiceDTOTourismSpecificationV2BusTaiwanTripS2STravelTimeTravelTime struct {

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

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

	// Int32
	//
	// 站間預估行駛時間
	// Required: true
	RunTime *int32 `json:"RunTime"`

	// Int32
	//
	// 站間序號
	// Required: true
	Sequence *int32 `json:"Sequence"`

	// Int32
	//
	// 起站停靠時間
	// Required: true
	StopTime *int32 `json:"StopTime"`

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

PTXServiceDTOTourismSpecificationV2BusTaiwanTripS2STravelTimeTravelTime TravelTime

swagger:model PTX.Service.DTO.Tourism.Specification.V2.BusTaiwanTripS2STravelTime+TravelTime

func (*PTXServiceDTOTourismSpecificationV2BusTaiwanTripS2STravelTimeTravelTime) ContextValidate added in v0.9.0

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

func (*PTXServiceDTOTourismSpecificationV2BusTaiwanTripS2STravelTimeTravelTime) MarshalBinary added in v0.7.0

MarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2BusTaiwanTripS2STravelTimeTravelTime) UnmarshalBinary added in v0.7.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2BusTaiwanTripS2STravelTimeTravelTime) Validate added in v0.7.0

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

type PTXServiceDTOTourismSpecificationV2BusTaiwanTripShape added in v0.7.0

type PTXServiceDTOTourismSpecificationV2BusTaiwanTripShape struct {

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

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

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

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

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

	// NameType
	//
	// 台灣好行路線名稱
	TaiwanTripName struct {
		PTXServiceDTOSharedSpecificationV2BaseNameType
	} `json:"TaiwanTripName,omitempty" xml:"NameType,omitempty"`

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

PTXServiceDTOTourismSpecificationV2BusTaiwanTripShape BusTaiwanTripShape

台灣好行線型資料

swagger:model PTX.Service.DTO.Tourism.Specification.V2.BusTaiwanTripShape

func (*PTXServiceDTOTourismSpecificationV2BusTaiwanTripShape) ContextValidate added in v0.9.0

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

func (*PTXServiceDTOTourismSpecificationV2BusTaiwanTripShape) MarshalBinary added in v0.7.0

MarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2BusTaiwanTripShape) UnmarshalBinary added in v0.7.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2BusTaiwanTripShape) Validate added in v0.7.0

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

type PTXServiceDTOTourismSpecificationV2BusTimetable added in v0.9.0

type PTXServiceDTOTourismSpecificationV2BusTimetable struct {

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

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

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

	// String
	//
	// 班次代碼,為無意義之編碼
	TripID string `json:"TripID,omitempty" xml:"String,omitempty"`
}

PTXServiceDTOTourismSpecificationV2BusTimetable BusTimetable

班次資料

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

func (*PTXServiceDTOTourismSpecificationV2BusTimetable) ContextValidate added in v0.9.0

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

func (*PTXServiceDTOTourismSpecificationV2BusTimetable) MarshalBinary added in v0.9.0

MarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2BusTimetable) UnmarshalBinary added in v0.9.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2BusTimetable) Validate added in v0.9.0

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

type PTXServiceDTOTourismSpecificationV2DatePeriod added in v0.9.0

type PTXServiceDTOTourismSpecificationV2DatePeriod 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"`
}

PTXServiceDTOTourismSpecificationV2DatePeriod DatePeriod

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

func (*PTXServiceDTOTourismSpecificationV2DatePeriod) ContextValidate added in v0.9.0

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

func (*PTXServiceDTOTourismSpecificationV2DatePeriod) MarshalBinary added in v0.9.0

MarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2DatePeriod) UnmarshalBinary added in v0.9.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2DatePeriod) Validate added in v0.9.0

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

type PTXServiceDTOTourismSpecificationV2HotelTourismInfo added in v0.7.0

type PTXServiceDTOTourismSpecificationV2HotelTourismInfo struct {

	// String
	//
	// 旅館民宿地址
	Address string `json:"Address,omitempty" xml:"String,omitempty"`

	// String
	//
	// 所屬縣市
	City string `json:"City,omitempty" xml:"String,omitempty"`

	// String
	//
	// 旅館民宿分類
	Class string `json:"Class,omitempty" xml:"String,omitempty"`

	// String
	//
	// 旅館民宿簡述
	Description string `json:"Description,omitempty" xml:"String,omitempty"`

	// String
	//
	// 旅館民宿傳真
	Fax string `json:"Fax,omitempty" xml:"String,omitempty"`

	// String
	//
	// 觀光旅館星級
	Grade string `json:"Grade,omitempty" xml:"String,omitempty"`

	// String
	//
	// 旅館民宿代碼
	// Required: true
	HotelID *string `json:"HotelID" xml:"String"`

	// String
	//
	// 旅館民宿名稱
	HotelName string `json:"HotelName,omitempty" xml:"String,omitempty"`

	// String
	//
	// 旅館民宿地點簡圖連結網址
	MapURL string `json:"MapUrl,omitempty" xml:"String,omitempty"`

	// String
	//
	// 停車資訊
	ParkingInfo string `json:"ParkingInfo,omitempty" xml:"String,omitempty"`

	// String
	//
	// 旅館民宿電話
	Phone string `json:"Phone,omitempty" xml:"String,omitempty"`

	// TourismPicture
	//
	// 旅館民宿照片
	Picture struct {
		PTXServiceDTOTourismSpecificationV2TourismPicture
	} `json:"Picture,omitempty" xml:"TourismPicture,omitempty"`

	// PointType
	//
	// 旅館民宿位置
	Position struct {
		PTXServiceDTOSharedSpecificationV2BasePointType
	} `json:"Position,omitempty" xml:"PointType,omitempty"`

	// String
	//
	// 服務內容介紹
	ServiceInfo string `json:"ServiceInfo,omitempty" xml:"String,omitempty"`

	// String
	//
	// 房型、價目及數量說明
	Spec string `json:"Spec,omitempty" xml:"String,omitempty"`

	// DateTime
	//
	// 觀光局檔案更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
	// Required: true
	// Format: date-time
	SrcUpdateTime *strfmt.DateTime `json:"SrcUpdateTime"`

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

	// String
	//
	// 旅館民宿網站網址
	WebsiteURL string `json:"WebsiteUrl,omitempty" xml:"String,omitempty"`

	// String
	//
	// 郵遞區號
	ZipCode string `json:"ZipCode,omitempty" xml:"String,omitempty"`
}

PTXServiceDTOTourismSpecificationV2HotelTourismInfo HotelTourismInfo

取得觀光旅宿資料

swagger:model PTX.Service.DTO.Tourism.Specification.V2.HotelTourismInfo

func (*PTXServiceDTOTourismSpecificationV2HotelTourismInfo) ContextValidate added in v0.9.0

ContextValidate validate this p t x service d t o tourism specification v2 hotel tourism info based on the context it is used

func (*PTXServiceDTOTourismSpecificationV2HotelTourismInfo) MarshalBinary added in v0.7.0

MarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2HotelTourismInfo) UnmarshalBinary added in v0.7.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2HotelTourismInfo) Validate added in v0.7.0

Validate validates this p t x service d t o tourism specification v2 hotel tourism info

type PTXServiceDTOTourismSpecificationV2RestaurantTourismInfo added in v0.7.0

type PTXServiceDTOTourismSpecificationV2RestaurantTourismInfo struct {

	// String
	//
	// 店家地址
	Address string `json:"Address,omitempty" xml:"String,omitempty"`

	// String
	//
	// 所屬縣市
	City string `json:"City,omitempty" xml:"String,omitempty"`

	// String
	//
	// 店家分類
	Class string `json:"Class,omitempty" xml:"String,omitempty"`

	// String
	//
	// 店家簡述
	Description string `json:"Description,omitempty" xml:"String,omitempty"`

	// String
	//
	// 店家地圖/簡圖介紹網址
	MapURL string `json:"MapUrl,omitempty" xml:"String,omitempty"`

	// String
	//
	// 營業時間
	OpenTime string `json:"OpenTime,omitempty" xml:"String,omitempty"`

	// String
	//
	// 停車資訊
	ParkingInfo string `json:"ParkingInfo,omitempty" xml:"String,omitempty"`

	// String
	//
	// 預約電話
	Phone string `json:"Phone,omitempty" xml:"String,omitempty"`

	// TourismPicture
	//
	// 店家照片
	Picture struct {
		PTXServiceDTOTourismSpecificationV2TourismPicture
	} `json:"Picture,omitempty" xml:"TourismPicture,omitempty"`

	// PointType
	//
	// 店家位置
	Position struct {
		PTXServiceDTOSharedSpecificationV2BasePointType
	} `json:"Position,omitempty" xml:"PointType,omitempty"`

	// String
	//
	// 餐飲店家代碼
	// Required: true
	RestaurantID *string `json:"RestaurantID" xml:"String"`

	// String
	//
	// 餐飲店家名稱
	RestaurantName string `json:"RestaurantName,omitempty" xml:"String,omitempty"`

	// 觀光局檔案更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
	// Required: true
	// Format: date-time
	SrcUpdateTime *strfmt.DateTime `json:"SrcUpdateTime"`

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

	// String
	//
	// 店家網站網址
	WebsiteURL string `json:"WebsiteUrl,omitempty" xml:"String,omitempty"`

	// String
	//
	// 郵遞區號
	ZipCode string `json:"ZipCode,omitempty" xml:"String,omitempty"`
}

PTXServiceDTOTourismSpecificationV2RestaurantTourismInfo RestaurantTourismInfo

取得觀光餐飲資料

swagger:model PTX.Service.DTO.Tourism.Specification.V2.RestaurantTourismInfo

func (*PTXServiceDTOTourismSpecificationV2RestaurantTourismInfo) ContextValidate added in v0.9.0

ContextValidate validate this p t x service d t o tourism specification v2 restaurant tourism info based on the context it is used

func (*PTXServiceDTOTourismSpecificationV2RestaurantTourismInfo) MarshalBinary added in v0.7.0

MarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2RestaurantTourismInfo) UnmarshalBinary added in v0.7.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2RestaurantTourismInfo) Validate added in v0.7.0

Validate validates this p t x service d t o tourism specification v2 restaurant tourism info

type PTXServiceDTOTourismSpecificationV2RouteOperator added in v0.9.0

type PTXServiceDTOTourismSpecificationV2RouteOperator 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"`
}

PTXServiceDTOTourismSpecificationV2RouteOperator RouteOperator

營運業者資訊

swagger:model PTX.Service.DTO.Tourism.Specification.V2.RouteOperator

func (*PTXServiceDTOTourismSpecificationV2RouteOperator) ContextValidate added in v0.9.0

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

func (*PTXServiceDTOTourismSpecificationV2RouteOperator) MarshalBinary added in v0.9.0

MarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2RouteOperator) UnmarshalBinary added in v0.9.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2RouteOperator) Validate added in v0.9.0

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

type PTXServiceDTOTourismSpecificationV2ScenicSpotTourismInfo added in v0.7.0

type PTXServiceDTOTourismSpecificationV2ScenicSpotTourismInfo struct {

	// String
	//
	// 景點地址
	Address string `json:"Address,omitempty" xml:"String,omitempty"`

	// String
	//
	// 所屬縣市
	City string `json:"City,omitempty" xml:"String,omitempty"`

	// String
	//
	// 景點分類1
	Class1 string `json:"Class1,omitempty" xml:"String,omitempty"`

	// String
	//
	// 景點分類2
	Class2 string `json:"Class2,omitempty" xml:"String,omitempty"`

	// String
	//
	// 景點分類3
	Class3 string `json:"Class3,omitempty" xml:"String,omitempty"`

	// String
	//
	// 景點特色精簡說明
	Description string `json:"Description,omitempty" xml:"String,omitempty"`

	// String
	//
	// 景點特色詳細說明
	DescriptionDetail string `json:"DescriptionDetail,omitempty" xml:"String,omitempty"`

	// String
	//
	// 常用搜尋關鍵字
	Keyword string `json:"Keyword,omitempty" xml:"String,omitempty"`

	// String
	//
	// 古蹟分級
	Level string `json:"Level,omitempty" xml:"String,omitempty"`

	// String
	//
	// 景點地圖/簡圖介紹網址
	MapURL string `json:"MapUrl,omitempty" xml:"String,omitempty"`

	// String
	//
	// 開放時間
	OpenTime string `json:"OpenTime,omitempty" xml:"String,omitempty"`

	// String
	//
	// 停車資訊
	ParkingInfo string `json:"ParkingInfo,omitempty" xml:"String,omitempty"`

	// PointType
	//
	// 景點主要停車場位置
	ParkingPosition struct {
		PTXServiceDTOSharedSpecificationV2BasePointType
	} `json:"ParkingPosition,omitempty" xml:"PointType,omitempty"`

	// String
	//
	// 景點服務電話
	Phone string `json:"Phone,omitempty" xml:"String,omitempty"`

	// TourismPicture
	//
	// 景點照片
	Picture struct {
		PTXServiceDTOTourismSpecificationV2TourismPicture
	} `json:"Picture,omitempty" xml:"TourismPicture,omitempty"`

	// PointType
	//
	// 景點位置
	Position struct {
		PTXServiceDTOSharedSpecificationV2BasePointType
	} `json:"Position,omitempty" xml:"PointType,omitempty"`

	// String
	//
	// 警告及注意事項
	Remarks string `json:"Remarks,omitempty" xml:"String,omitempty"`

	// String
	//
	// 景點代碼
	// Required: true
	ScenicSpotID *string `json:"ScenicSpotID" xml:"String"`

	// String
	//
	// 景點名稱
	ScenicSpotName string `json:"ScenicSpotName,omitempty" xml:"String,omitempty"`

	// DateTime
	//
	// 觀光局檔案更新時間(ISO8601格式:yyyy-MM-ddTHH:mm:sszzz)
	// Required: true
	// Format: date-time
	SrcUpdateTime *strfmt.DateTime `json:"SrcUpdateTime"`

	// String
	//
	// 票價資訊
	TicketInfo string `json:"TicketInfo,omitempty" xml:"String,omitempty"`

	// String
	//
	// 交通資訊
	TravelInfo string `json:"TravelInfo,omitempty" xml:"String,omitempty"`

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

	// String
	//
	// 景點官方網站網址
	WebsiteURL string `json:"WebsiteUrl,omitempty" xml:"String,omitempty"`

	// String
	//
	// 郵遞區號
	ZipCode string `json:"ZipCode,omitempty" xml:"String,omitempty"`
}

PTXServiceDTOTourismSpecificationV2ScenicSpotTourismInfo ScenicSpotTourismInfo

取得觀光景點資料

swagger:model PTX.Service.DTO.Tourism.Specification.V2.ScenicSpotTourismInfo

func (*PTXServiceDTOTourismSpecificationV2ScenicSpotTourismInfo) ContextValidate added in v0.9.0

ContextValidate validate this p t x service d t o tourism specification v2 scenic spot tourism info based on the context it is used

func (*PTXServiceDTOTourismSpecificationV2ScenicSpotTourismInfo) MarshalBinary added in v0.7.0

MarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2ScenicSpotTourismInfo) UnmarshalBinary added in v0.7.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2ScenicSpotTourismInfo) Validate added in v0.7.0

Validate validates this p t x service d t o tourism specification v2 scenic spot tourism info

type PTXServiceDTOTourismSpecificationV2ServiceDay added in v0.9.0

type PTXServiceDTOTourismSpecificationV2ServiceDay 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"`
}

PTXServiceDTOTourismSpecificationV2ServiceDay ServiceDay

週內營運日資料

swagger:model PTX.Service.DTO.Tourism.Specification.V2.ServiceDay

func (*PTXServiceDTOTourismSpecificationV2ServiceDay) ContextValidate added in v0.9.0

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

func (*PTXServiceDTOTourismSpecificationV2ServiceDay) MarshalBinary added in v0.9.0

MarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2ServiceDay) UnmarshalBinary added in v0.9.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2ServiceDay) Validate added in v0.9.0

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

type PTXServiceDTOTourismSpecificationV2SpecialDay added in v0.9.0

type PTXServiceDTOTourismSpecificationV2SpecialDay struct {

	// DatePeriod
	//
	// 連續特殊日期
	DatePeriod struct {
		PTXServiceDTOTourismSpecificationV2DatePeriod
	} `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"`
}

PTXServiceDTOTourismSpecificationV2SpecialDay SpecialDay

特殊營運日資料

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

func (*PTXServiceDTOTourismSpecificationV2SpecialDay) ContextValidate added in v0.9.0

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

func (*PTXServiceDTOTourismSpecificationV2SpecialDay) MarshalBinary added in v0.9.0

MarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2SpecialDay) UnmarshalBinary added in v0.9.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2SpecialDay) Validate added in v0.9.0

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

type PTXServiceDTOTourismSpecificationV2Stop added in v0.9.0

type PTXServiceDTOTourismSpecificationV2Stop 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"`
}

PTXServiceDTOTourismSpecificationV2Stop Stop

站牌代碼資料

swagger:model PTX.Service.DTO.Tourism.Specification.V2.Stop

func (*PTXServiceDTOTourismSpecificationV2Stop) ContextValidate added in v0.9.0

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

func (*PTXServiceDTOTourismSpecificationV2Stop) MarshalBinary added in v0.9.0

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

MarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2Stop) UnmarshalBinary added in v0.9.0

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

UnmarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2Stop) Validate added in v0.9.0

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

type PTXServiceDTOTourismSpecificationV2TourismPicture added in v0.7.0

type PTXServiceDTOTourismSpecificationV2TourismPicture struct {

	// String
	//
	// 照片說明1
	PictureDescription1 string `json:"PictureDescription1,omitempty" xml:"String,omitempty"`

	// String
	//
	// 照片說明2
	PictureDescription2 string `json:"PictureDescription2,omitempty" xml:"String,omitempty"`

	// String
	//
	// 照片說明3
	PictureDescription3 string `json:"PictureDescription3,omitempty" xml:"String,omitempty"`

	// String
	//
	// 照片連結網址1
	PictureUrl1 string `json:"PictureUrl1,omitempty" xml:"String,omitempty"`

	// String
	//
	// 照片連結網址2
	PictureUrl2 string `json:"PictureUrl2,omitempty" xml:"String,omitempty"`

	// String
	//
	// 照片連結網址3
	PictureUrl3 string `json:"PictureUrl3,omitempty" xml:"String,omitempty"`
}

PTXServiceDTOTourismSpecificationV2TourismPicture TourismPicture

觀光照片資料型別

swagger:model PTX.Service.DTO.Tourism.Specification.V2.TourismPicture

func (*PTXServiceDTOTourismSpecificationV2TourismPicture) ContextValidate added in v0.9.0

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

func (*PTXServiceDTOTourismSpecificationV2TourismPicture) MarshalBinary added in v0.7.0

MarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2TourismPicture) UnmarshalBinary added in v0.7.0

UnmarshalBinary interface implementation

func (*PTXServiceDTOTourismSpecificationV2TourismPicture) Validate added in v0.7.0

Validate validates this p t x service d t o tourism specification v2 tourism picture

Source Files

Jump to

Keyboard shortcuts

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