Module org.entur.netex.gtfs.export
Class DefaultStopProducer
java.lang.Object
org.entur.netex.gtfs.export.producer.DefaultStopProducer
- All Implemented Interfaces:
StopProducer
Produce a GTFS stop from a NeTEX StopPlace or a NeTEx Quay.
Supported GTFS extension: vehicle_type (see https://developers.google.com/transit/gtfs/reference/gtfs-extensions/#stops.txt)
-
Field Summary
Fields inherited from interface org.entur.netex.gtfs.export.producer.StopProducer
WHEELCHAIR_BOARDING_FALSE, WHEELCHAIR_BOARDING_TRUE -
Constructor Summary
ConstructorsConstructorDescriptionDefaultStopProducer(StopAreaRepository stopAreaRepository, GtfsDatasetRepository gtfsDatasetRepository) -
Method Summary
Modifier and TypeMethodDescriptionorg.onebusaway.gtfs.model.StopproduceStopFromQuay(org.rutebanken.netex.model.Quay quay) Produce a GTFS stop from a NeTEx quay.org.onebusaway.gtfs.model.StopproduceStopFromStopPlace(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.
-
Constructor Details
-
DefaultStopProducer
public DefaultStopProducer(StopAreaRepository stopAreaRepository, GtfsDatasetRepository gtfsDatasetRepository)
-
-
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:
produceStopFromStopPlacein interfaceStopProducer- 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:
produceStopFromQuayin interfaceStopProducer- Parameters:
quay- the NeTEX Quay- Returns:
- the GTFS stop
-