Class DefaultStopProducer

java.lang.Object
org.entur.netex.gtfs.export.producer.DefaultStopProducer
All Implemented Interfaces:
StopProducer

public class DefaultStopProducer extends Object implements StopProducer
Produce a GTFS stop from a NeTEX StopPlace or a NeTEx Quay. Supported GTFS extension: vehicle_type (see stops.txt)
  • Constructor Details

  • Method Details

    • produceStopFromStopPlace

      public org.onebusaway.gtfs.model.Stop produceStopFromStopPlace(org.rutebanken.netex.model.StopPlace stopPlace)
      Produce a GTFS stop from a NeTEx StopPlace The GTFS parent station is not set and the NeTEX parent stop place is ignored. The GTFS location type is set to Station. The GTFS description is based on the NeTEx description only if it is different from the NeTEx name, it is ignored otherwise.
      Specified by:
      produceStopFromStopPlace in interface StopProducer
      Parameters:
      stopPlace - a NeTEx stop place
      Returns:
      a GTFS stop.
    • produceStopFromQuay

      public org.onebusaway.gtfs.model.Stop produceStopFromQuay(org.rutebanken.netex.model.Quay quay)
      Produce a GTFS stop from a NeTEx quay. The GTFS name is copied from the parent StopPlace name since NeTEx Quays do not have a name (Nordic NeTEx profile requirement). The GTFS vehicle type (GTFS extension) is inherited from the parent StopPlace since NeTEx Quays inherit transport mode from their parent StopPlace (Nordic NeTEx profile requirement). The GTFS parent station is set as the NeTEx parent stop place The GTFS location type is set to STOP The GTFS description is based on the NeTEx description only if it is different from the NeTEx name, it is ignored otherwise.*
      Specified by:
      produceStopFromQuay in interface StopProducer
      Parameters:
      quay - the NeTEX Quay
      Returns:
      the GTFS stop