Documentation ¶
Overview ¶
Package filters provides tools for modifying and transforming streams of GTFS entities. Used with copier.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplyDefaultAgencyFilter ¶
type ApplyDefaultAgencyFilter struct {
// contains filtered or unexported fields
}
ApplDefaultAgencyFilter sets a default agency_id value in relevant fields when the value is empty, e.g. routes.txt agency_id. It will only set a default agency_id value when the feed contains a single agency.
type ApplyParentTimezoneFilter ¶
type ApplyParentTimezoneFilter struct {
// contains filtered or unexported fields
}
ApplyParentTimezoneFilter sets timezone based on the default agency timezone or parent stop timezone Can be used with NormalizeTimezoneFilter
type ApplyTimezoneFilter ¶
type ApplyTimezoneFilter struct {
// contains filtered or unexported fields
}
ApplyTimezoneFilter sets all timezones in the file to the specified value
func NewApplyTimezoneFilter ¶
func NewApplyTimezoneFilter(timezone string) (*ApplyTimezoneFilter, error)
type BasicRouteTypeFilter ¶
type BasicRouteTypeFilter struct{}
BasicRouteTypeFilter checks for extended route_type's and converts to basic route_types.
type NormalizeTimezoneFilter ¶
type NormalizeTimezoneFilter struct{}
NormalizeTimezoneFilter changes a timezone alias to a normalized timezone, e.g. "US/Pacific" -> "America/Los_Angeles"
type PrefixFilter ¶
type PrefixFilter struct { PrefixAll bool // contains filtered or unexported fields }
func NewPrefixFilter ¶
func NewPrefixFilter() (*PrefixFilter, error)
func (*PrefixFilter) PrefixFile ¶
func (filter *PrefixFilter) PrefixFile(fn string)
func (*PrefixFilter) SetPrefix ¶
func (filter *PrefixFilter) SetPrefix(fvid int, prefix string)