Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agency ¶
type Agency struct { Id int `gorm:"primaryKey;auto_increment"` AgencyId *string `gorm:"index;unique"` AgencyName *string `gorm:"not null"` AgencyUrl *string `gorm:"not null"` AgencyTimezone *string `gorm:"not null"` AgencyLang *string AgencyPhone *string AgencyFareUrl *string AgencyEmail *string Routes []Route `gorm:"foreignKey:AgencyId;references:AgencyId"` }
type Attribution ¶
type Attribution struct { AttributionId *string `gorm:"primaryKey"` AgencyId *string `gorm:"primaryKey"` RouteId *string `gorm:"primaryKey"` TripId *string `gorm:"primaryKey"` OrganizationName *string `gorm:"not null"` IsProducer *int `gorm:"default:0"` IsOperator *int `gorm:"default:0"` IsAuthority *int `gorm:"default:0"` AttributionUrl *string AttributionEmail *string AttributionPhone *string }
func (Attribution) TableName ¶
func (Attribution) TableName() string
type Calendar ¶
type Calendar struct { ServiceId *string `gorm:"primaryKey;index"` Monday *int `gorm:"not null"` Tuesday *int `gorm:"not null"` Wednesday *int `gorm:"not null"` Thursday *int `gorm:"not null"` Friday *int `gorm:"not null"` Saturday *int `gorm:"not null"` Sunday *int `gorm:"not null"` StartDate *datatypes.Date `gorm:"not null"` EndDate *datatypes.Date `gorm:"not null"` Trips []Trip `gorm:"foreignKey:ServiceId;references:ServiceId"` }
type CalendarDate ¶
type CalendarDate struct { ServiceId *string `gorm:"primaryKey;index;not null"` Date *datatypes.Date `gorm:"primaryKey;index;not null"` ExceptionType *int `gorm:"not null"` }
func (CalendarDate) TableName ¶
func (CalendarDate) TableName() string
type FareAttribute ¶
type FareAttribute struct { FareId *string `gorm:"primaryKey;index"` Price *float64 `gorm:"index;not null"` CurrencyType *string `gorm:"primaryKey"` PaymentMethod *int `gorm:"not null"` Transfers *int //必須の項目だが、空の場合があるため、nullを許容 AgencyId *string TransferDuration *int }
func (FareAttribute) TableName ¶
func (FareAttribute) TableName() string
type FareRule ¶
type FareRule struct { Id int `gorm:"primaryKey;auto_increment"` FareId *string `gorm:"index;not null"` RouteId *string OriginId *string DestinationId *string ContainsId *string OriginStop Stop `gorm:"foreignKey:OriginId;references:ZoneId"` DestinationStop Stop `gorm:"foreignKey:DestinationId;references:ZoneId"` }
type FeedInfo ¶
type FeedInfo struct { FeedPublisherName *string `gorm:"primaryKey;not null"` FeedPublisherUrl *string `gorm:"not null"` FeedLang *string `gorm:"not null"` DefaultLang *string FeedStartDate *datatypes.Date FeedEndDate *datatypes.Date FeedVersion *string FeedContactEmail *string FeedContactUrl *string }
type Frequency ¶
type Level ¶
type Pathway ¶
type Pathway struct { PathwayId *string `gorm:"primaryKey"` FromStopId *string `gorm:"index;not null"` ToStopId *string `gorm:"index;not null"` PathwayMode *int `gorm:"index;not null"` IsBidirectional *int `gorm:"index;not null"` Length *float64 TraversalTime *int StairCount *int MaxSlope *float64 `gorm:"default:0"` MinWidth *float64 SignpostedAs *string ReversedSignpostedAs *string }
type Route ¶
type Route struct { RouteId *string `gorm:"primaryKey"` AgencyId *string RouteShortName *string RouteLongName *string RouteDesc *string RouteType *int `gorm:"index;not null"` RouteUrl *string RouteColor *string RouteTextColor *string RouteSortOrder *int `gorm:"index"` ContinuousPickup *int `gorm:"default:1"` ContinuousDropOff *int `gorm:"default:1"` Trips []Trip `gorm:"foreignKey:RouteId;references:RouteId"` FareRules []FareRule `gorm:"foreignKey:RouteId;references:RouteId"` }
type Shape ¶
type ShapeDetail ¶ added in v0.3.2
type ShapeDetail struct { ShapeId *string `gorm:"primaryKey"` ShapePtLat *float64 `gorm:"not null"` ShapePtLon *float64 `gorm:"not null"` ShapeDetailPtSequence *int `gorm:"primaryKey"` ShapeDistTraveled *float64 Geom *geomdatatypes.Geometry `gorm:"index"` }
func (ShapeDetail) TableName ¶ added in v0.3.2
func (ShapeDetail) TableName() string
type ShapeEx ¶ added in v0.3.0
type ShapeEx struct { TripId *string `gorm:"primaryKey"` ShapeId *string `gorm:"primaryKey"` ShapePtLat *float64 `gorm:"not null"` ShapePtLon *float64 `gorm:"not null"` ShapePtSequence *int `gorm:"primaryKey"` ShapeDistTraveled *float64 StopId *string Geom *geomdatatypes.Geometry `gorm:"index"` Stop Stop `gorm:"foreignKey:StopId"` }
type Stop ¶
type Stop struct { StopId *string `gorm:"primaryKey"` StopCode *string StopName *string StopDesc *string StopLat *float64 StopLon *float64 ZoneId *string `gorm:"unique"` StopUrl *string LocationType *int `gorm:"default:0"` ParentStation *string StopTimezone *string WheelchairBoarding *int `gorm:"default:0"` LevelId *string PlatformCode *string Geom *geomdatatypes.Geometry `gorm:"index"` StopTimes []StopTime `gorm:"foreignKey:StopId;references:StopId"` }
type StopTime ¶
type StopTime struct { TripId *string `gorm:"primaryKey"` ArrivalTime *datatypes.Time `gorm:"index"` DepartureTime *datatypes.Time `gorm:"index"` StopId *string `gorm:"primaryKey"` StopSequence *int `gorm:"primaryKey"` StopHeadsign *string PickupType *int `gorm:"default:0"` DropOffType *int `gorm:"default:0"` ContinuousPickup *int `gorm:"default:1"` ContinuousDropOff *int `gorm:"default:1"` ShapeDistTraveled *float64 Timepoint *int `gorm:"default:1"` }
type Transfer ¶
type Transfer struct { Id int `gorm:"primaryKey;auto_increment"` FromStopId *string `gorm:"primaryKey"` ToStopId *string `gorm:"primaryKey"` FromRouteId *string ToRouteId *string FromTripId *string ToTripId *string TransferType *int `gorm:"not null"` MinTransferTime *int FromStop Stop `gorm:"foreignKey:FromStopId;references:StopId"` ToStop Stop `gorm:"foreignKey:ToStopId;references:StopId"` FromTrip Trip `gorm:"foreignKey:FromTripId;references:TripId"` ToTrip Trip `gorm:"foreignKey:ToTripId;references:TripId"` }
type Translation ¶
type Translation struct { Id int `gorm:"primaryKey;auto_increment"` //To avoid duplication with "TableName", "N" should be written in lower case. Tablename *string `gorm:"column:table_name;not null"` FieldName *string `gorm:"not null"` Language *string `gorm:"not null"` Translation *string `gorm:"not null"` RecordId *string RecordSubId *string FieldValue *string }
func (Translation) TableName ¶
func (Translation) TableName() string
type Trip ¶
type Trip struct { RouteId *string `gorm:"index;not null"` ServiceId *string `gorm:"index;not null"` TripId *string `gorm:"primaryKey"` TripHeadsign *string TripShortName *string DirectionId *int `gorm:"index"` BlockId *string `gorm:"index"` ShapeId *string `gorm:"index"` WheelchairAccessible *int `gorm:"default:0"` BikesAllowed *int `gorm:"default:0"` Geom *geomdatatypes.Geometry StopTimes []StopTime `gorm:"foreignKey:TripId;references:TripId"` Frequencies []Frequency `gorm:"foreignKey:TripId;references:TripId"` }
type UniversalCalendar ¶ added in v0.1.6
type UniversalCalendar struct { ServiceId *string `gorm:"primaryKey;index"` Date *datatypes.Date `gorm:"primaryKey;index"` }
func (UniversalCalendar) TableName ¶ added in v0.1.6
func (UniversalCalendar) TableName() string
Click to show internal directories.
Click to hide internal directories.