public class OverpassAPIReader
extends java.lang.Object
| Constructor and Description |
|---|
OverpassAPIReader(double left,
double right,
double top,
double bottom,
java.lang.String baseUrl,
java.lang.String query)
Creates a new instance with the specified geographical coordinates.
|
| Modifier and Type | Method and Description |
|---|---|
OsmData |
getData() |
void |
parse(java.io.InputStream in) |
public OverpassAPIReader(double left,
double right,
double top,
double bottom,
java.lang.String baseUrl,
java.lang.String query)
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.baseUrl - (optional) The base url of the server (eg.
http://www.openstreetmap.org/api/0.5).public void parse(java.io.InputStream in)
throws java.io.IOException
java.io.IOExceptionpublic OsmData getData()