internal

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const CoordinatesPerRow = 2000

Variables

This section is empty.

Functions

This section is empty.

Types

type GTFSDB

type GTFSDB struct {
	Agencies          *column.Collection
	Routes            *column.Collection
	Services          *column.Collection
	ServiceExceptions *column.Collection
	Shapes            *column.Collection
	Stops             *column.Collection
	Trips             *column.Collection

	// Metadata
	MaxShapeLength int
}

func (*GTFSDB) Initialize

func (db *GTFSDB) Initialize()

Initalize the GTFS database schema

func (*GTFSDB) Load

func (db *GTFSDB) Load(filePath string) (int, error)

Load loads the GTFS database from a zip file.

func (*GTFSDB) Populate

func (db *GTFSDB) Populate(
	agencies models.AgencyMap,
	routes models.RouteMap,
	services models.ServiceMap,
	serviceExceptions models.ServiceExceptionMap,
	shapes models.ShapeMap,
	stops models.StopMap,
	trips models.TripMap,
) error

Populates the GTFS database with data from the provided maps.

func (*GTFSDB) Save

func (db *GTFSDB) Save(filePath string, version int) error

Save saves the GTFS database to a zip file.

Jump to

Keyboard shortcuts

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