Ignore:
Timestamp:
2013-12-01T00:04:33+01:00 (11 years ago)
Author:
simon04
Message:

JOSM/mirrored_download: fix #josm8825 - coordinates in XAPI query leads to "Bad request"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/mirrored_download/src/mirrored_download/MirroredDownloadAction.java

    r29505 r30106  
    168168                {
    169169                    // Overpass compatibility layer
    170                     String url = overpassType + "[bbox=" + lon1 + "," + lat1 + "," + lon2 + "," + lat2 + "]"
    171                         + "[@meta]" + overpassQuery;
     170                    String url = overpassType
     171                        + (overpassQuery.contains("[bbox=") ? "" : "[bbox=" + lon1 + "," + lat1 + "," + lon2 + "," + lat2 + "]")
     172                        + (overpassQuery.contains("[@meta]") ? "" : "[@meta]")
     173                        + overpassQuery;
    172174                    try
    173175                    {
Note: See TracChangeset for help on using the changeset viewer.