*/
public void run()
{
- final String url = "http://www.informationfreeway.org/api/0.6/map?bbox=" +
- _latLonLabels[1].getText() + "," + _latLonLabels[3].getText() + "," +
- _latLonLabels[2].getText() + "," + _latLonLabels[0].getText();
+ String url = "http://overpass-api.de/api/interpreter?data=(node(" +
+ _latLonLabels[3].getText() + "," + _latLonLabels[1].getText() + "," +
+ _latLonLabels[0].getText() + "," + _latLonLabels[2].getText() + ");<;);out%20qt;";
+ // System.out.println(url);
byte[] buffer = new byte[1024];
InputStream inStream = null;
}
catch (MalformedURLException mue) {}
catch (IOException ioe) {
- // TODO: throw exception or show dialog
- System.out.println("Exception: " + ioe.getClass().getName());
+ _app.showErrorMessageNoLookup(getNameKey(), ioe.getClass().getName() + " - " + ioe.getMessage());
}
// clean up streams
finally {