Class OverpassAPIReader

java.lang.Object
org.oscim.utils.overpass.OverpassAPIReader

public class OverpassAPIReader extends Object
  • Constructor Details

    • OverpassAPIReader

      public OverpassAPIReader()
    • OverpassAPIReader

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

    • query

      public static String query(double left, double right, double top, double bottom, 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(InputStream in) throws IOException
      Throws:
      IOException
    • parseInputStream

      public void parseInputStream()
    • getData

      public OsmData getData()