diff options
Diffstat (limited to 'main/src/cgeo/geocaching/connector')
-rw-r--r-- | main/src/cgeo/geocaching/connector/gc/GCMap.java | 2 | ||||
-rw-r--r-- | main/src/cgeo/geocaching/connector/gc/Tile.java | 31 | ||||
-rw-r--r-- | main/src/cgeo/geocaching/connector/gc/UTFGrid.java | 8 |
3 files changed, 20 insertions, 21 deletions
diff --git a/main/src/cgeo/geocaching/connector/gc/GCMap.java b/main/src/cgeo/geocaching/connector/gc/GCMap.java index c7cb40f..bd6a04d 100644 --- a/main/src/cgeo/geocaching/connector/gc/GCMap.java +++ b/main/src/cgeo/geocaching/connector/gc/GCMap.java @@ -104,8 +104,6 @@ public class GCMap { } /** - * @param url - * URL used to retrieve data. * @param data * Retrieved data. * @return SearchResult. Never null. diff --git a/main/src/cgeo/geocaching/connector/gc/Tile.java b/main/src/cgeo/geocaching/connector/gc/Tile.java index 4747912..a34503d 100644 --- a/main/src/cgeo/geocaching/connector/gc/Tile.java +++ b/main/src/cgeo/geocaching/connector/gc/Tile.java @@ -24,9 +24,9 @@ import java.util.Set; * * @author blafoo * - * @see http://msdn.microsoft.com/en-us/library/bb259689.aspx - * @see http - * ://svn.openstreetmap.org/applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/OsmMercator.java + * @see <a href="http://msdn.microsoft.com/en-us/library/bb259689.aspx">MSDN</a> + * @see <a + * href="http://svn.openstreetmap.org/applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/OsmMercator.java">OSM</a> */ public class Tile { @@ -70,24 +70,16 @@ public class Tile { /** * Calculate the tile for a Geopoint based on the Spherical Mercator. * - * @see http://developers.cloudmade.com/projects/tiles/examples/convert-coordinates-to-tile-numbers + * @see <a + * href="http://developers.cloudmade.com/projects/tiles/examples/convert-coordinates-to-tile-numbers">Cloudmade</a> */ private int calcX(final Geopoint origin) { return (int) ((origin.getLongitude() + 180.0) / 360.0 * NUMBER_OF_TILES[this.zoomlevel]); } - public int getX() { - return tileX; - } - - public int getY() { - return tileY; - } - /** * Calculate the tile for a Geopoint based on the Spherical Mercator. * - * @see http://developers.cloudmade.com/projects/tiles/examples/convert-coordinates-to-tile-numbers */ private int calcY(final Geopoint origin) { @@ -99,10 +91,19 @@ public class Tile { return (int) ((0.5 - Math.log((1 + sinLatRad) / (1 - sinLatRad)) / (4 * Math.PI)) * NUMBER_OF_TILES[this.zoomlevel]); } + public int getX() { + return tileX; + } + + public int getY() { + return tileY; + } + /** * Calculate latitude/longitude for a given x/y position in this tile. - * - * @see http://developers.cloudmade.com/projects/tiles/examples/convert-coordinates-to-tile-numbers + * + * @see <a + * href="http://developers.cloudmade.com/projects/tiles/examples/convert-coordinates-to-tile-numbers">Cloudmade</a> */ public Geopoint getCoord(UTFGridPosition pos) { diff --git a/main/src/cgeo/geocaching/connector/gc/UTFGrid.java b/main/src/cgeo/geocaching/connector/gc/UTFGrid.java index a663a71..ce80ffd 100644 --- a/main/src/cgeo/geocaching/connector/gc/UTFGrid.java +++ b/main/src/cgeo/geocaching/connector/gc/UTFGrid.java @@ -3,11 +3,11 @@ package cgeo.geocaching.connector.gc; import java.util.List; /** - * + * * @author blafoo - * - * @see https://github.com/mapbox/mbtiles-spec/blob/master/1.1/utfgrid.md - * + * + * @see <a href="https://github.com/mapbox/mbtiles-spec/blob/master/1.1/utfgrid.md">Mapbox</a> + * */ public final class UTFGrid { |