Class OverpassAPIReader


  • public class OverpassAPIReader
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      OverpassAPIReader()  
      OverpassAPIReader​(double left, double right, double top, double bottom, java.lang.String query)
      Creates a new instance with the specified geographical coordinates.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      OsmData getData()  
      void parse​(java.io.InputStream in)  
      void parseInputStream()  
      static java.lang.String query​(double left, double right, double top, double bottom, java.lang.String query)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OverpassAPIReader

        public OverpassAPIReader()
      • OverpassAPIReader

        public OverpassAPIReader​(double left,
                                 double right,
                                 double top,
                                 double bottom,
                                 java.lang.String query)
        Creates a new instance with the specified geographical coordinates.
    • Method Detail

      • query

        public static java.lang.String query​(double left,
                                             double right,
                                             double top,
                                             double bottom,
                                             java.lang.String query)
        Parameters:
        left - The longitude marking the left edge of the bounding box.
        right - The longitude marking the right edge of the bounding box.
        top - The latitude marking the top edge of the bounding box.
        bottom - The latitude marking the bottom edge of the bounding box.
        query - The prepared query.
        Returns:
        the processed query with specified bounding box
      • parse

        public void parse​(java.io.InputStream in)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • parseInputStream

        public void parseInputStream()
      • getData

        public OsmData getData()