Documentation ¶
Index ¶
- Constants
- Variables
- func CountRows(fileName string) (int, error)
- func IterateCalendarDates(fileName string, handler func(int, *gtfs.CalendarDate) bool) error
- func IterateEdges(fileName string, threadCount int, handler func(StringArr)) error
- func IterateRoutes(fileName string, handler func(int, *gtfs.Route) bool) error
- func IterateServices(fileName string, handler func(int, *gtfs.Calendar) bool) error
- func IterateShortcuts(fileName string, threadCount int, handler func(StringArr)) error
- func IterateStopTimes(fileName string, handler func(int, *gtfs.StopTime) bool) error
- func IterateStops(fileName string, handler func(int, *gtfs.Stop) bool) error
- func IterateTrips(fileName string, handler func(int, *gtfs.Trip) bool) error
- func IterateVertices(fileName string, threadCount int, handler func(StringArr)) error
- type StringArr
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 IterateCalendarDates ¶
func IterateEdges ¶
func IterateServices ¶
func IterateShortcuts ¶
func IterateStopTimes ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.