views:

516

answers:

1

dear friends,

i want to point out google map location using overlay so for this purpose latitude ,longitude value to be assigned to geopoint but it only accepts int values.

how can i assign it double value or any other solution to point out exact location?

point = new GeoPoint((int)t.getLati(),(int)t.getLongi())

any help would be appriciated.

+3  A: 

Since GeoPoint accepts latitudes and longitudes in microdegrees, simply create your point like so:

GeoPoint point = new GeoPoint((int)(latitude * 1e6),
                              (int)(longitude * 1e6));
Roman Nurik
thanks you very much.. working..now..
UMMA