Package org.goplanit.gtfs.converter
Class RouteTypeOriginalToPlanitModeMappingCreator
- java.lang.Object
-
- org.goplanit.gtfs.converter.RouteTypeOriginalToPlanitModeMappingCreator
-
public class RouteTypeOriginalToPlanitModeMappingCreator extends Object
Each GTFS default Route type is mapped to a PLANit mode through this dedicated mapping class so that the memory model's modes are user configurable yet linked to the original format. Note that when the reader is used i.c.w. a network writer to convert one network to the other. It is paramount that the PLANit modes that are mapped here are also mapped by the writer to the output format to ensure a correct I/O mapping of modes The default mapping is provided below. It is important to realise that modes that are marked as N/A have no predefined equivalent in PLANit, as a result they are ignored.- TRAM_LIGHTRAIL (0) to LightrailMode
- SUBWAY_METRO (1) to SubwayMode
- RAIL (2) to TrainMode
- BUS (3) to BusMode
- FERRY (4) to N/A
- CABLE_TRAM (5) to N/A
- AERIAL (6) to N/A
- FUNICULAR (7) to N/A
- TROLLEY_BUS (8) to BusMode
- MONO_RAIL (9) to N/A
-
-
Constructor Summary
Constructors Constructor Description RouteTypeOriginalToPlanitModeMappingCreator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
execute(GtfsConverterReaderSettingsWithModeMapping settings)
Perform and populate mapping in provided settings
-
-
-
Method Detail
-
execute
public static void execute(GtfsConverterReaderSettingsWithModeMapping settings)
Perform and populate mapping in provided settings- Parameters:
settings
- to populate
-
-