Documentation
¶
Index ¶
- func InterpolateStopTimes(stoptimes []gtfs.StopTime) ([]gtfs.StopTime, error)
- type GeomCache
- func (g *GeomCache) AddShapeGeom(eid string, line []tlxy.Point, dists []float64)
- func (g *GeomCache) AddStopGeom(eid string, pt tlxy.Point)
- func (g *GeomCache) GetShape(eid string) []tlxy.Point
- func (g *GeomCache) GetShapeInfo(eid string) ShapeInfo
- func (g *GeomCache) GetStop(eid string) tlxy.Point
- func (g *GeomCache) InterpolateStopTimes(trip *gtfs.Trip) ([]gtfs.StopTime, error)
- func (g *GeomCache) MakeShape(stopids ...string) ([]tlxy.Point, []float64, error)
- type ShapeInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GeomCache ¶
type GeomCache struct {
// contains filtered or unexported fields
}
GeomCache helps speed up StopTime interpolating by caching various results
func (*GeomCache) AddShapeGeom ¶
func (*GeomCache) AddStopGeom ¶
AddStopGeom adds a Stop to the geometry cache.
func (*GeomCache) GetShapeInfo ¶
func (*GeomCache) InterpolateStopTimes ¶
InterpolateStopTimes uses the cached geometries to interpolate StopTimes. TODO: move to somewhere else
Click to show internal directories.
Click to hide internal directories.