X-Git-Url: http://gitweb.fperrin.net/?a=blobdiff_plain;f=tim%2Fprune%2Ffunction%2FDownloadOsmFunction.java;fp=tim%2Fprune%2Ffunction%2FDownloadOsmFunction.java;h=e3d362738d6814c8fc99cf6c86ec20baaaace679;hb=649c5da6ee1bbc590699e11a92316ece2ea8512d;hp=bef09adb14574e0ea87ff46e2cc98fe0ff3f7330;hpb=eebbb64b5d63f9eea43a0dff908c30361a376768;p=GpsPrune.git diff --git a/tim/prune/function/DownloadOsmFunction.java b/tim/prune/function/DownloadOsmFunction.java index bef09ad..e3d3627 100644 --- a/tim/prune/function/DownloadOsmFunction.java +++ b/tim/prune/function/DownloadOsmFunction.java @@ -243,7 +243,7 @@ public class DownloadOsmFunction extends GenericFunction implements Runnable */ public void run() { - final String url = "http://www.informationfreeway.org/api/0.6/map?bbox=" + + final String url = "http://xapi.openstreetmap.org/api/0.6/map?bbox=" + _latLonLabels[1].getText() + "," + _latLonLabels[3].getText() + "," + _latLonLabels[2].getText() + "," + _latLonLabels[0].getText(); @@ -263,8 +263,7 @@ public class DownloadOsmFunction extends GenericFunction implements Runnable } 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 {