Changeset 5422 in josm for trunk/src/org/openstreetmap/josm/io
- Timestamp:
- 2012-08-11T17:37:00+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/OsmApi.java
r5386 r5422 61 61 * <a href="http://wiki.openstreetmap.org/wiki/API_usage_policy#Technical_Usage_Requirements"> 62 62 * OSM API usage policy.</a> 63 * @since 5386 63 64 */ 64 65 static public final int MAX_DOWNLOAD_THREADS = 2; 66 67 /** 68 * Default URL of the standard OSM API. 69 * @since 5422 70 */ 71 static public final String DEFAULT_API_URL = "http://api.openstreetmap.org/api"; 65 72 66 73 // The collection of instantiated OSM APIs … … 92 99 */ 93 100 static public OsmApi getOsmApi() { 94 String serverUrl = Main.pref.get("osm-server.url", "http://api.openstreetmap.org/api");101 String serverUrl = Main.pref.get("osm-server.url", DEFAULT_API_URL); 95 102 if (serverUrl == null) 96 103 throw new IllegalStateException(tr("Preference ''{0}'' missing. Cannot initialize OsmApi.", "osm-server.url"));
Note:
See TracChangeset
for help on using the changeset viewer.