Class GtfsRealtimeConversionLibrary


  • public class GtfsRealtimeConversionLibrary
    extends Object
    Methods for converting GTFS-RT to models for serialization
    • Constructor Detail

      • GtfsRealtimeConversionLibrary

        public GtfsRealtimeConversionLibrary()
    • Method Detail

      • readTripUpdates

        public static List<TripUpdateModel> readTripUpdates​(com.google.transit.realtime.GtfsRealtime.FeedMessage tripUpdates)
      • readVehiclePositions

        public static List<VehiclePositionModel> readVehiclePositions​(com.google.transit.realtime.GtfsRealtime.FeedMessage vehiclePositions)
      • readAlerts

        public static List<AlertModel> readAlerts​(com.google.transit.realtime.GtfsRealtime.FeedMessage alerts)
      • parseDate

        public static Date parseDate​(String startDate,
                                     String startTime)
        Combine startDate and startTime into a single combined Date.
        Parameters:
        startDate - a String with format of "YYYYMMDD"
        startTime - a String with format of "HH:MM:SS"
        Returns:
        a Date representing the combined date and time