i have 2 doubles, lat and long with the form (X.XXXXXX).
I'm trying to make new GeoPoint from this values, but when I convert to GeoPoint, remove the ,
obtain this result geopoint(XXXX,XXXX);
Double latitudEditando = Double.parseDouble(datosLugar.get(4).toString());
Double longitudEditando = Double.parseDouble(datosLugar.get(5).toString());
puntoEditando = new GeoPoint((int)(latitudEditando*1e6), (int)(longitudEditando*1e6));
What am I doing wrong?
datosLugar.get(4) return me: 40.3138987 (Double)
datosLugar.get(5) return me: -3.8811184 (double)
puntoEditando return me (403138987,-38811184)
Sorry, thats OK, i think geopoint there is (40,00000 , 44,000)
The
GeoPoint
class from the google addons is constructed with latitude and longitude as microdegrees in the form of aint
. This is fine as long aslatitudEditando
andlongitudEditando
are doubles that express coordinates in degrees: