Class OsmIntermodalReader

  • All Implemented Interfaces:
    ConverterEntity, IntermodalReader, MultiConverterReader<MacroscopicNetwork,​Zoning>

    public class OsmIntermodalReader
    extends Object
    implements IntermodalReader
    Parse OSM input in either *.osm or *.osm.pbf format and return PLANit intermodal network which includes the transfer zones of a zoning instance. By default an intermodal reader will activate parsing transfer infrastructure as well as the network infrastructure (including rail which for a "regular" network reader is turned off by default, since we assume that more often than not, once desires to include rail when parsing pt networks. One can manually change these defaults via the various settings made available.
    Author:
    markr
    • Constructor Detail

      • OsmIntermodalReader

        protected OsmIntermodalReader​(String countryName,
                                      PlanitOsmNetwork osmNetworkToPopulate,
                                      Zoning zoningToPopulate)
        Constructor
        Parameters:
        countryName - to use for parsing the geometries in desired projection
        osmNetworkToPopulate - to populate
        zoningToPopulate - to populate
      • OsmIntermodalReader

        protected OsmIntermodalReader​(URL inputSource,
                                      String countryName,
                                      PlanitOsmNetwork osmNetworkToPopulate,
                                      Zoning zoningToPopulate)
        Constructor
        Parameters:
        inputSource - to use for all intermodal parsing
        countryName - to use for parsing the geometries in desired projection
        osmNetworkToPopulate - to populate
        zoningToPopulate - to populate
      • OsmIntermodalReader

        protected OsmIntermodalReader​(OsmIntermodalReaderSettings settings,
                                      Zoning zoningToPopulate)
        Constructor
        Parameters:
        settings - to use
        zoningToPopulate - to populate