blob: 197bd76b4be822ff0aac6086ceba6f38d27d54f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
package cgeo.geocaching.maps.mapsforge;
import cgeo.geocaching.geopoint.Geopoint;
import cgeo.geocaching.maps.interfaces.GeoPointImpl;
import org.mapsforge.core.GeoPoint;
public class MapsforgeGeoPoint extends GeoPoint implements GeoPointImpl {
private static final long serialVersionUID = 1L;
public MapsforgeGeoPoint(int latitudeE6, int longitudeE6) {
super(latitudeE6, longitudeE6);
}
@Override
public Geopoint getCoords() {
return new Geopoint(getLatitudeE6() / 1e6, getLongitudeE6() / 1e6);
}
@Override
public int getLatitudeE6() {
return latitudeE6;
}
@Override
public int getLongitudeE6() {
return longitudeE6;
}
}
|