Class DestinationDisplayUtil

java.lang.Object
org.entur.netex.gtfs.export.util.DestinationDisplayUtil

public final class DestinationDisplayUtil extends Object
Utility class for Destination Displays.
  • Method Details

    • getInitialDestinationDisplay

      public static org.rutebanken.netex.model.DestinationDisplay getInitialDestinationDisplay(org.rutebanken.netex.model.JourneyPattern journeyPattern, NetexDatasetRepository netexDatasetRepository)
      Return the destination display on the first stop in the journey pattern.
      Parameters:
      journeyPattern - the journey pattern.
      netexDatasetRepository - the repository of NeTEx data.
      Returns:
      the destination display on the first stop in the journey pattern.
    • getHeadSignFromDestinationDisplay

      public static String getHeadSignFromDestinationDisplay(org.rutebanken.netex.model.DestinationDisplay destinationDisplay, NetexDatasetRepository netexDatasetRepository)
      Build the GTFS head sign from a destination display that may contain a list of vias (intermediate head signs). If the destination display front text is A and it refers to 2 Vias with front texts B and C, then the head sign is "A via B/C".
      Parameters:
      destinationDisplay - the NeTEx destination display
      netexDatasetRepository - the netex dataset repository
      Returns:
      a head sign that concatenates the destination display front text and its optional vias.