Changeset 4579 in josm


Ignore:
Timestamp:
2011-11-06T00:15:31+01:00 (13 years ago)
Author:
Don-vip
Message:

Add Overpass API instances to supported OSM data servers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmTask.java

    r4530 r4579  
    7272    @Override
    7373    public boolean acceptsUrl(String url) {
    74         return url != null && url.matches("http://.*/api/0.6/(map|nodes?|ways?|relations?).*");
     74        return url != null && (
     75                url.matches("http://.*/api/0.6/(map|nodes?|ways?|relations?).*")    // OSM API 0.6
     76             || url.matches("http://.*/xapi\\?.*\\[@meta\\]")                       // Overpass API XAPI compatibility layer
     77                );
    7578    }
    7679
Note: See TracChangeset for help on using the changeset viewer.