realtime

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package realtime contains the code for updating the database from a GTFS realtime feed.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(content []byte, opts *api.GtfsRealtimeOptions) (*gtfs.Realtime, error)

func Update

func Update(ctx context.Context, updateCtx common.UpdateContext, data *gtfs.Realtime) error

Types

type StopHeadsignMatcher

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

func NewStopHeadsignMatcher

func NewStopHeadsignMatcher(ctx context.Context, querier db.Querier, stopIDToPk map[string]int64, trips []gtfs.Trip) (*StopHeadsignMatcher, error)

func (*StopHeadsignMatcher) Match

func (m *StopHeadsignMatcher) Match(stopPk int64, track *string) *string

Jump to

Keyboard shortcuts

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