Class GtfsServicesReaderFactory


  • public class GtfsServicesReaderFactory
    extends Object
    Factory for creating GtfsRoutedServicesReaders
    Author:
    markr
    • Constructor Detail

      • GtfsServicesReaderFactory

        public GtfsServicesReaderFactory()
    • Method Detail

      • create

        public static GtfsServicesReader create​(MacroscopicNetwork parentNetwork,
                                                String inputZipLocation,
                                                String countryName,
                                                DayOfWeek dayOfWeek,
                                                RouteTypeChoice typeChoice)
        Create a GtfsRoutedServicesReader sourced from given input directory
        Parameters:
        parentNetwork - the network the routed services are assumed to be built upon
        inputZipLocation - to use
        countryName - to use
        dayOfWeek - to filter on
        typeChoice - to apply
        Returns:
        created routed service reader
      • create

        public static GtfsServicesReader create​(MacroscopicNetwork parentNetwork,
                                                GtfsServicesReaderSettings settings)
        Create a PlanitRoutedServicesReader based on given settings which in turn contain information on location and parent network to use
        Parameters:
        parentNetwork - the network the routed services are assumed to be built upon
        settings - to use
        Returns:
        created routed service reader