Versions in this module Expand all Collapse all v2 v2.0.7 Sep 26, 2022 Changes in this version + func ArrayIn(target string, array []string) bool type GTFS + func (g *GTFS) ExtractByAgencyID(ids []string) *GTFS + func (g *GTFS) ExtractByRouteIDs(ids []string) *GTFS + func (g *GTFS) InitIndexMap() *IndexMap + type IndexMap struct + AgencyID2Index map[string]int + FareID2Index map[string]int + RouteID2Index map[string]int + ServiceID2Index map[string]int + StopID2Index map[string]int + TripID2Index map[string]int v2.0.6 Mar 16, 2022 v2.0.5 Mar 15, 2022 Changes in this version + func Unzip(src, dest string) error type GTFS + func LoadFromUnzipGTFS(fileName string, filter map[string]bool) (*GTFS, error) v2.0.4 Mar 14, 2022 v2.0.3 Mar 13, 2022 v2.0.2 Mar 13, 2022 Changes in this version + type FareAttribute struct + AgencyId string + CurrentType string + FareId string + PaymentMethod int + Price float64 + TransferDuration string + Transfers int + type FareRule struct + ContainsId string + DestinationId string + FareId string + OriginId string + RouteId string type GTFS + FareAttributes []FareAttribute + FareRules []FareRule + func (g *GTFS) GetFareAttribute(fareId string) (FareAttribute, error) + func (g *GTFS) GetFareAttributeFromOD(originId string, destinationId string, routeId string) (FareAttribute, error) v2.0.1 Mar 13, 2022 v2.0.0 Mar 13, 2022 Changes in this version + const ExceptionTypeAdded + const ExceptionTypeRemoved + const RouteTypeBus + const RouteTypeCableCar + const RouteTypeFerry + const RouteTypeFunicular + const RouteTypeGondola + const RouteTypeRail + const RouteTypeSubway + const RouteTypeTram + func Dump(g *GTFS, dirPath string, filter map[string]bool) error + func DumpEdgeTimetable(edgeTimetable *EdgeTimetable, dirPath string, filter map[string]bool) error + func HHMMSS2Sec(str string) int + func I2AA(i int) string + func Sec2HHMMSS(t int) string + type Agency struct + ID string + Langue string + Name string + Phone string + Timezone string + URL string + type Calendar struct + End string + Friday int + Monday int + Saturday int + ServiceID string + Start string + Sunday int + Thursday int + Tuesday int + Wednesday int + type CalendarDate struct + Date string + ExceptionType int + ServiceID string + type EdgeTimetable struct + Edges []TimetableEdge + Properties []TimetableEdgeProperty + Stops []Stop + type GTFS struct + Agencies []Agency + Agency Agency + CalendarDates []CalendarDate + Calendars []Calendar + Path string + Routes []Route + Stops []Stop + StopsTimes []StopTime + Transfers []Transfer + Trips []Trip + func Load(dirPath string, filter map[string]bool) (*GTFS, error) + func LoadSplitted(dirPath string, filter map[string]bool) ([]*GTFS, error) + func (g *GTFS) AddTransfer(connectRange float64, walkingSpeed float64, road *gm.Graph, numThread int) error + func (g *GTFS) AddTransferWithOSM(connectRange float64, walkingSpeed float64, osmFileName string, numThread int) error + func (g *GTFS) ExtractByDate(date time.Time) *GTFS + func (g *GTFS) GTFS2TimeTableEdges() (et *EdgeTimetable) + func (g *GTFS) GetHeadSign(tripId string, stopId string) string + func (g *GTFS) GetRoute(routeId string) Route + func (g *GTFS) GetRoutePatterns() (patterns []RoutePattern) + func (g *GTFS) GetStop(stopID string) Stop + func (g *GTFS) GetTrip(tripId string) Trip + func (g *GTFS) Sort() + type Route struct + AgencyID string + Color string + Desc string + ID string + LongName string + ShortName string + TextColor string + Type int + URL string + type RoutePattern struct + Trips []TripTimetable + type Stop struct + Code string + Description string + ID string + Latitude float64 + Longitude float64 + Name string + Parent string + Type string + ZoneID string + type StopTime struct + Arrival string + Departure string + DropOffType int + PickupType int + Shape int + StopHeadSign string + StopID string + StopSeq string + TripID string + type TimetableEdge struct + ArrivalTime string + DepartureTime string + DropOffType int + FromStop string + PickupType int + StopHeadSign string + ToStop string + TripId string + type TimetableEdgeProperty struct + AgencyID string + Color string + Desc string + DirectionID string + Headsign string + LongName string + Name string + RouteID string + ServiceID string + ShapeID string + ShortName string + TextColor string + TripID string + Type int + URL string + type Transfer struct + FromStopID string + MinTime int + ToStopID string + Type int + type Trip struct + DirectionID string + Headsign string + ID string + Name string + RouteID string + ServiceID string + ShapeID string + type TripTimetable struct + Properties TimetableEdgeProperty + StopTimes []StopTime + func GetTripTimetables(g *GTFS) (tripTimetables []TripTimetable) Other modules containing this package github.com/takoyaki-3/go-gtfs