Class OsmIntermodalReaderSettings

  • All Implemented Interfaces:
    ConverterReaderSettings

    public class OsmIntermodalReaderSettings
    extends Object
    implements ConverterReaderSettings
    Capture all the user configurable settings regarding the OSM intermodal reader, which in turn has a network and zoning reader. Hence, these settings provide access to OSM network and zoning reader settings
    Author:
    markr
    • Constructor Detail

      • OsmIntermodalReaderSettings

        public OsmIntermodalReaderSettings​(String countryName)
        Constructor
        Parameters:
        countryName - to use
      • OsmIntermodalReaderSettings

        public OsmIntermodalReaderSettings​(String inputSource,
                                           String countryName)
        Constructor
        Parameters:
        inputSource - to use
        countryName - to use
      • OsmIntermodalReaderSettings

        public OsmIntermodalReaderSettings​(URL inputSource,
                                           String countryName)
        Constructor
        Parameters:
        inputSource - to use
        countryName - to use
    • Method Detail

      • getNetworkSettings

        public OsmNetworkReaderSettings getNetworkSettings()
        Provide access to the network reader settings
        Returns:
        network reader settings
      • getPublicTransportSettings

        public OsmPublicTransportReaderSettings getPublicTransportSettings()
        Provide access to the zoning (pt) reader settings
        Returns:
        zoning reader pt settings
      • setInputSource

        public void setInputSource​(URL inputSource)
        Set the inputSource to use including for both the network and public transport settings (both should use the same source)
        Parameters:
        inputSource - to use
      • setInputFile

        public void setInputFile​(String inputFile)
        Set the input file to use, which is internally converted into a URL
        Parameters:
        inputFile - to use
      • setBoundingBox

        public final void setBoundingBox​(Number x1,
                                         Number x2,
                                         Number y1,
                                         Number y2)
        Set a square bounding box based on provided envelope
        Parameters:
        x1 - , first x coordinate
        y1 - , first y coordinate
        x2 - , second x coordinate
        y2 - , second y coordinate
      • setBoundingBox

        public final void setBoundingBox​(org.locationtech.jts.geom.Envelope boundingBox)
        Set a square bounding box based on provided envelope (which internally is converted to the bounding polygon that happens to be square)
        Parameters:
        boundingBox - to use
      • setBoundingPolygon

        public final void setBoundingPolygon​(org.locationtech.jts.geom.Polygon boundingPolygon)
        Set a polygon based bounding box to restrict parsing to
        Parameters:
        boundingPolygon - to use