Changeset 15622 in josm


Ignore:
Timestamp:
2019-12-28T15:21:36+01:00 (5 years ago)
Author:
Don-vip
Message:

fix #18475 - support Nominatim geojson URL format

File:
1 edited

Legend:

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

    r15424 r15622  
    2323
    2424    private static final String PATTERN_COMPRESS = "https?://.*/(.*\\.(json|geojson)(\\.(gz|xz|bz2?|zip))?)";
     25    private static final String PATTERN_FORMAT_GEOJSON = "https?://.*format=geojson.*";
    2526
    2627    @Override
    2728    public String[] getPatterns() {
    28         return new String[]{PATTERN_COMPRESS};
     29        return new String[]{PATTERN_COMPRESS, PATTERN_FORMAT_GEOJSON};
    2930    }
    3031
Note: See TracChangeset for help on using the changeset viewer.