Changeset 11329 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2016-11-27T10:42:36+01:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/GeoUrlToBounds.java
r10757 r11329 12 12 /** 13 13 * Parses a Geo URL (as specified in <a href="https://tools.ietf.org/html/rfc5870">RFC 5870</a>) into {@link Bounds}. 14 * 15 * Note that Geo URLs are also handled by {@link OsmUrlToBounds}. 14 16 */ 15 17 public final class GeoUrlToBounds { -
trunk/src/org/openstreetmap/josm/tools/OsmUrlToBounds.java
r11302 r11329 17 17 import org.openstreetmap.josm.gui.util.GuiHelper; 18 18 19 /** 20 * Parses various URL used in OpenStreetMap projects into {@link Bounds}. 21 */ 19 22 public final class OsmUrlToBounds { 20 23 private static final String SHORTLINK_PREFIX = "http://osm.org/go/"; … … 24 27 } 25 28 29 /** 30 * Parses an URL into {@link Bounds} 31 * @param url the URL to be parsed 32 * @return the parsed {@link Bounds}, or {@code null} 33 */ 26 34 public static Bounds parse(String url) { 35 if (url.startsWith("geo:")) { 36 return GeoUrlToBounds.parse(url); 37 } 27 38 try { 28 39 // a percent sign indicates an encoded URL (RFC 1738).
Note:
See TracChangeset
for help on using the changeset viewer.