Skip to content Skip to sidebar Skip to footer

Android Geopoint Error

public void addOverLays(){ String [] coordinates = {'30.084262490272522','31.33625864982605' ,'30.084123015403748', '51.5002' , '-0.1262','31.337149143218994'}; double lat

Solution 1:

you might have a casting issue, hard to tell. Try using this utility method:

publicstatic GeoPoint calculateGeoPoint(double latitude, double longitude) {
DoublelatE6= latitude * 1E6;
DoublelngE6= longitude * 1E6;
returnnewGeoPoint(latE6.intValue(), lngE6.intValue());

}

It's worked reliably for me in tested production code.

Post a Comment for "Android Geopoint Error"