Package org.oscim.utils.overpass
Class OverpassAPIReader
- java.lang.Object
-
- org.oscim.utils.overpass.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 OsmDatagetData()voidparse(java.io.InputStream in)voidparseInputStream()static java.lang.Stringquery(double left, double right, double top, double bottom, java.lang.String query)
-
-
-
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()
-
-