]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - tim/prune/function/DownloadOsmFunction.java
Version 19, May 2018
[GpsPrune.git] / tim / prune / function / DownloadOsmFunction.java
index e3d362738d6814c8fc99cf6c86ec20baaaace679..b3ee1b292447bd02e4c3eaab1b0f5529258eb85d 100644 (file)
@@ -243,9 +243,10 @@ public class DownloadOsmFunction extends GenericFunction implements Runnable
         */
        public void run()
        {
-               final String url = "http://xapi.openstreetmap.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;