Changeset 35831 in osm for applications/editors/josm
- Timestamp:
- 2021-10-21T13:40:05+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/org/openstreetmap/josm/plugins/fr/cadastre/api/CadastreAPI.java
r35727 r35831 17 17 18 18 import org.openstreetmap.josm.data.Bounds; 19 import org.openstreetmap.josm.data.preferences.StringProperty; 19 20 import org.openstreetmap.josm.io.OsmApiException; 20 21 import org.openstreetmap.josm.tools.HttpClient; … … 27 28 public final class CadastreAPI { 28 29 29 private static final String API_ENDPOINT = "https://sandbox.geo.api.gouv.fr/cadastre"; 30 private static final StringProperty API_ENDPOINT = new StringProperty( 31 "cadastrefr.api.endpoint", "https://geo.api.gouv.fr/cadastre"); 30 32 31 33 private CadastreAPI() { … … 53 55 */ 54 56 public static Set<String> getSheets(double minlon, double minlat, double maxlon, double maxlat) throws IOException { 55 URL url = new URL(API_ENDPOINT + "/feuilles?bbox=" + String.join(",",57 URL url = new URL(API_ENDPOINT.get() + "/feuilles?bbox=" + String.join(",", 56 58 Double.toString(minlon), Double.toString(minlat), Double.toString(maxlon), Double.toString(maxlat))); 57 59 try {
Note:
See TracChangeset
for help on using the changeset viewer.