Class GtfsPlanitFileHandlerStopTimes


  • public class GtfsPlanitFileHandlerStopTimes
    extends GtfsFileHandlerStopTimes
    Handler for handling GTFS stop times to populate PLANit service (network/routed services) memory model

    Prerequisites: (i) It is assumed routed services and service network are available and layers are initialised, (ii) it is assumed the sequence of stops per trip is increasing while traversing the file, i.e., a stop with sequence 1 will always be parsed before any other stop with sequence greater than 1.

    As part of this handler, we create schedule based trips as needed where we make no effort to consolidate trips that have the same schedule but different departure times yet, i.e., we create a single schedule based trip with a single departure and relative timings per chain of stop times. In other words a GTFS trip will correspond 1:1 to a PLANit trip after parsing

    Author:
    markr
    • Constructor Detail

      • GtfsPlanitFileHandlerStopTimes

        public GtfsPlanitFileHandlerStopTimes​(GtfsServicesHandlerData gtfsServicesHandlerData)
        Constructor
        Parameters:
        gtfsServicesHandlerData - containing all data to track and resources needed to perform the processing
      • GtfsPlanitFileHandlerStopTimes

        public GtfsPlanitFileHandlerStopTimes​(GtfsServicesHandlerData gtfsServicesHandlerData,
                                              Set<String> activatedLoggingForGtfsRoutesByShortName)
        Constructor
        Parameters:
        gtfsServicesHandlerData - containing all data to track and resources needed to perform the processing
        activatedLoggingForGtfsRoutesByShortName - set of tracked GTFS routes (by short name) to log information for found in the dataset
    • Method Detail

      • getUniqueRoutesForTrackedGtfsStops

        public Map<String,​Set<String>> getUniqueRoutesForTrackedGtfsStops()
        All GTFS routes per tracked stop that were found to require user logging
        Returns:
        result