aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/maps/google/v1/GoogleGeoPoint.java
blob: 3f8980782e646a349e5ffc16855477b615bb655d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package cgeo.geocaching.maps.google.v1;

import cgeo.geocaching.location.Geopoint;
import cgeo.geocaching.maps.interfaces.GeoPointImpl;

import com.google.android.maps.GeoPoint;

public class GoogleGeoPoint extends GeoPoint implements GeoPointImpl {

    public GoogleGeoPoint(final int latitudeE6, final int longitudeE6) {
        super(latitudeE6, longitudeE6);
    }

    @Override
    public Geopoint getCoords() {
        return new Geopoint(getLatitudeE6() / 1e6, getLongitudeE6() / 1e6);
    }

}