adapters

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: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader interface {
	Open() error
	Close() error
	ValidateStructure() []error
	StopTimesByTripID(...string) chan []gtfs.StopTime
	String() string
	// Entities
	ReadEntities(c interface{}) error
	Stops() chan gtfs.Stop
	StopTimes() chan gtfs.StopTime
	Agencies() chan gtfs.Agency
	Calendars() chan gtfs.Calendar
	CalendarDates() chan gtfs.CalendarDate
	FareAttributes() chan gtfs.FareAttribute
	FareRules() chan gtfs.FareRule
	FeedInfos() chan gtfs.FeedInfo
	Frequencies() chan gtfs.Frequency
	Routes() chan gtfs.Route
	Shapes() chan gtfs.Shape
	Transfers() chan gtfs.Transfer
	Pathways() chan gtfs.Pathway
	Levels() chan gtfs.Level
	Trips() chan gtfs.Trip
	Translations() chan gtfs.Translation
	Attributions() chan gtfs.Attribution
	Areas() chan gtfs.Area
	StopAreas() chan gtfs.StopArea
	FareLegRules() chan gtfs.FareLegRule
	FareTransferRules() chan gtfs.FareTransferRule
	FareProducts() chan gtfs.FareProduct
	RiderCategories() chan gtfs.RiderCategory
	FareMedia() chan gtfs.FareMedia
}

Reader defines an interface for reading entities from a GTFS feed.

type Writer

type Writer interface {
	Open() error
	Close() error
	Create() error
	Delete() error
	NewReader() (Reader, error)
	AddEntity(tt.Entity) (string, error)
	AddEntities([]tt.Entity) ([]string, error)
	String() string
}

Writer writes a GTFS feed.

type WriterWithExtraColumns

type WriterWithExtraColumns interface {
	Writer
	WriteExtraColumns(bool)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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