stream

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VertexVertexID   = iota
	VertexOrderPos   = iota
	VertexImportance = iota
	VertexGeom       = iota
)
View Source
const (
	EdgeFromVertexID         = iota
	EdgeToVertexID           = iota
	EdgeWeight               = iota
	EdgeGeom                 = iota
	EdgeWasOneWay            = iota
	EdgeEdgeID               = iota
	EdgeOsmWayFrom           = iota
	EdgeOsmWayTo             = iota
	EdgeOsmWayFromSourceNode = iota
	EdgeOsmWayFromTargetNode = iota
	EdgeOsmWayToSourceNode   = iota
	EdgeOsmWayToTargetNode   = iota
)
View Source
const (
	ShortcutFromVertexID = iota
	ShortcutToVertexID   = iota
	ShortcutWeight       = iota
	ShortcutViaVertexID  = iota
)

Variables

View Source
var EdgeFieldsOrder = []string{"from_vertex_id", "to_vertex_id", "weight", "geom", "was_one_way", "edge_id", "osm_way_from", "osm_way_to", "osm_way_from_source_node", "osm_way_from_target_node", "osm_way_to_source_node", "osm_way_to_target_node"}
View Source
var ShortcutFieldsOrder = []string{"from_vertex_id", "to_vertex_id", "weight", "via_vertex_id"}
View Source
var VertexFieldsOrder = []string{"vertex_id", "order_pos", "importance", "geom"}

Functions

func CountRows

func CountRows(fileName string) (int, error)

func IterateCalendarDates

func IterateCalendarDates(fileName string, handler func(int, *gtfs.CalendarDate) bool) error

func IterateEdges

func IterateEdges(fileName string, threadCount int, handler func(StringArr)) error

func IterateRoutes

func IterateRoutes(fileName string, handler func(int, *gtfs.Route) bool) error

func IterateServices

func IterateServices(fileName string, handler func(int, *gtfs.Calendar) bool) error

func IterateShortcuts

func IterateShortcuts(fileName string, threadCount int, handler func(StringArr)) error

func IterateStopTimes

func IterateStopTimes(fileName string, handler func(int, *gtfs.StopTime) bool) error

func IterateStops

func IterateStops(fileName string, handler func(int, *gtfs.Stop) bool) error

func IterateTrips

func IterateTrips(fileName string, handler func(int, *gtfs.Trip) bool) error

func IterateVertices

func IterateVertices(fileName string, threadCount int, handler func(StringArr)) error

Types

type StringArr

type StringArr []string

func (StringArr) GetFloat

func (v StringArr) GetFloat(index int) float64

func (StringArr) GetInt

func (v StringArr) GetInt(index int) int64

func (StringArr) GetString

func (v StringArr) GetString(index int) string

Jump to

Keyboard shortcuts

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