builders

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgencyGeometry

type AgencyGeometry struct {
	AgencyID tt.Key
	Geometry tt.Polygon
	tt.MinEntity
	tt.FeedVersionEntity
}

func (*AgencyGeometry) Filename

func (ent *AgencyGeometry) Filename() string

func (*AgencyGeometry) TableName

func (ent *AgencyGeometry) TableName() string

type AgencyOnestopID

type AgencyOnestopID struct {
	AgencyID  string
	OnestopID string
	tt.MinEntity
	tt.FeedVersionEntity
}

func (*AgencyOnestopID) Filename

func (ent *AgencyOnestopID) Filename() string

func (*AgencyOnestopID) TableName

func (ent *AgencyOnestopID) TableName() string

type AgencyPlace

type AgencyPlace struct {
	AgencyID string
	Name     tt.String
	Adm1name tt.String
	Adm0name tt.String
	Count    int
	Rank     float64
	tt.MinEntity
	tt.FeedVersionEntity
}

func (*AgencyPlace) Filename

func (rs *AgencyPlace) Filename() string

func (*AgencyPlace) TableName

func (rs *AgencyPlace) TableName() string

type AgencyPlaceBuilder

type AgencyPlaceBuilder struct {
	// contains filtered or unexported fields
}

func NewAgencyPlaceBuilder

func NewAgencyPlaceBuilder() *AgencyPlaceBuilder

func (*AgencyPlaceBuilder) AfterWrite

func (pp *AgencyPlaceBuilder) AfterWrite(eid string, ent tt.Entity, emap *tt.EntityMap) error

func (*AgencyPlaceBuilder) Copy

func (pp *AgencyPlaceBuilder) Copy(copier *copier.Copier) error

type ConvexHullBuilder

type ConvexHullBuilder struct {
	// contains filtered or unexported fields
}

func NewConvexHullBuilder

func NewConvexHullBuilder() *ConvexHullBuilder

func (*ConvexHullBuilder) AfterWrite

func (pp *ConvexHullBuilder) AfterWrite(eid string, ent tt.Entity, emap *tt.EntityMap) error

AfterWrite keeps track of which routes/agencies visit which stops

func (*ConvexHullBuilder) Copy

func (pp *ConvexHullBuilder) Copy(copier *copier.Copier) error

type FeedVersionGeometry

type FeedVersionGeometry struct {
	Geometry tt.Polygon
	tt.MinEntity
	tt.FeedVersionEntity
}

func (*FeedVersionGeometry) Filename

func (ent *FeedVersionGeometry) Filename() string

func (*FeedVersionGeometry) TableName

func (ent *FeedVersionGeometry) TableName() string

type OnestopIDBuilder

type OnestopIDBuilder struct {
	// contains filtered or unexported fields
}

func NewOnestopIDBuilder

func NewOnestopIDBuilder() *OnestopIDBuilder

func (*OnestopIDBuilder) AfterWrite

func (pp *OnestopIDBuilder) AfterWrite(eid string, ent tt.Entity, emap *tt.EntityMap) error

func (*OnestopIDBuilder) AgencyOnestopIDs added in v0.18.0

func (pp *OnestopIDBuilder) AgencyOnestopIDs() []AgencyOnestopID

func (*OnestopIDBuilder) Copy

func (pp *OnestopIDBuilder) Copy(copier *copier.Copier) error

func (*OnestopIDBuilder) RouteOnestopIDs added in v0.18.0

func (pp *OnestopIDBuilder) RouteOnestopIDs() []RouteOnestopID

func (*OnestopIDBuilder) StopOnestopIDs added in v0.18.0

func (pp *OnestopIDBuilder) StopOnestopIDs() []StopOnestopID

type RouteGeometry

type RouteGeometry struct {
	RouteID               string
	Generated             bool
	Geometry              tt.LineString
	CombinedGeometry      tt.Geometry
	Length                tt.Float
	MaxSegmentLength      tt.Float
	FirstPointMaxDistance tt.Float
	tt.MinEntity
	tt.FeedVersionEntity
}

func (*RouteGeometry) Filename

func (ent *RouteGeometry) Filename() string

func (*RouteGeometry) TableName

func (ent *RouteGeometry) TableName() string

type RouteGeometryBuilder

type RouteGeometryBuilder struct {
	// contains filtered or unexported fields
}

RouteGeometryBuilder creates default shapes for routes.

func NewRouteGeometryBuilder

func NewRouteGeometryBuilder() *RouteGeometryBuilder

NewRouteGeometryBuilder returns a new RouteGeometryBuilder.

func (*RouteGeometryBuilder) AfterWrite

func (pp *RouteGeometryBuilder) AfterWrite(eid string, ent tt.Entity, emap *tt.EntityMap) error

Counts the number of times a shape is used for each route,direction_id

func (*RouteGeometryBuilder) Copy

func (pp *RouteGeometryBuilder) Copy(copier *copier.Copier) error

Collects and assembles the default shapes and writes to the database

type RouteHeadway

type RouteHeadway struct {
	RouteID        string
	SelectedStopID string
	DirectionID    tt.Int
	HeadwaySecs    tt.Int
	DowCategory    tt.Int
	ServiceDate    tt.Date
	StopTripCount  tt.Int
	Departures     tt.Ints
	tt.MinEntity
	tt.FeedVersionEntity
}

func (*RouteHeadway) Filename

func (ent *RouteHeadway) Filename() string

func (*RouteHeadway) TableName

func (ent *RouteHeadway) TableName() string

type RouteHeadwayBuilder

type RouteHeadwayBuilder struct {
	// contains filtered or unexported fields
}

func NewRouteHeadwayBuilder

func NewRouteHeadwayBuilder() *RouteHeadwayBuilder

func (*RouteHeadwayBuilder) AfterWrite

func (pp *RouteHeadwayBuilder) AfterWrite(eid string, ent tt.Entity, emap *tt.EntityMap) error

func (*RouteHeadwayBuilder) Copy

func (pp *RouteHeadwayBuilder) Copy(copier *copier.Copier) error

type RouteOnestopID

type RouteOnestopID struct {
	RouteID   string
	OnestopID string
	tt.MinEntity
	tt.FeedVersionEntity
}

func (*RouteOnestopID) Filename

func (ent *RouteOnestopID) Filename() string

func (*RouteOnestopID) TableName

func (ent *RouteOnestopID) TableName() string

type RouteStop

type RouteStop struct {
	RouteID  string
	AgencyID string
	StopID   string
	tt.MinEntity
	tt.FeedVersionEntity
}

func (*RouteStop) Filename

func (rs *RouteStop) Filename() string

func (*RouteStop) TableName

func (rs *RouteStop) TableName() string

type RouteStopBuilder

type RouteStopBuilder struct {
	// contains filtered or unexported fields
}

func NewRouteStopBuilder

func NewRouteStopBuilder() *RouteStopBuilder

func (*RouteStopBuilder) AfterWrite

func (pp *RouteStopBuilder) AfterWrite(eid string, ent tt.Entity, emap *tt.EntityMap) error

func (*RouteStopBuilder) Copy

func (pp *RouteStopBuilder) Copy(copier *copier.Copier) error

type StopOnestopID

type StopOnestopID struct {
	StopID    string
	OnestopID string
	tt.MinEntity
	tt.FeedVersionEntity
}

func (*StopOnestopID) Filename

func (ent *StopOnestopID) Filename() string

func (*StopOnestopID) TableName

func (ent *StopOnestopID) TableName() string

Jump to

Keyboard shortcuts

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