Documentation ¶
Index ¶
- Constants
- Variables
- func IterateEdges(fileName string, threadCount int, handler func(StringArr)) error
- func IterateShortcuts(fileName string, threadCount int, handler func(StringArr)) error
- func IterateVertices(fileName string, threadCount int, handler func(StringArr)) error
- type GTFSFile
- func (g *GTFSFile) Close() error
- func (g *GTFSFile) CountRows(fileName string) (int, error)
- func (g *GTFSFile) Exists(fileName string) bool
- func (g *GTFSFile) IterateCalendarDates(handler func(int, *gtfs.CalendarDate) bool) error
- func (g *GTFSFile) IterateRoutes(handler func(int, *gtfs.Route) bool) error
- func (g *GTFSFile) IterateServices(handler func(int, *gtfs.Calendar) bool) error
- func (g *GTFSFile) IterateStopTimes(handler func(int, *gtfs.StopTime) bool) error
- func (g *GTFSFile) IterateStops(handler func(int, *gtfs.Stop) bool) error
- func (g *GTFSFile) IterateTrips(handler func(int, *gtfs.Trip) bool) 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 IterateEdges ¶
func IterateShortcuts ¶
Types ¶
type GTFSFile ¶ added in v1.0.2
type GTFSFile struct {
Reader *zip.ReadCloser
}
func (*GTFSFile) IterateCalendarDates ¶ added in v1.0.2
func (*GTFSFile) IterateRoutes ¶ added in v1.0.2
func (*GTFSFile) IterateServices ¶ added in v1.0.2
func (*GTFSFile) IterateStopTimes ¶ added in v1.0.2
func (*GTFSFile) IterateStops ¶ added in v1.0.2
Click to show internal directories.
Click to hide internal directories.