Co-ordinates data

Hi,

I have looked at the “NativeUILocationDemo”. The co-ordinates are obtained as Degree, Min , Time. Ex : 104, 6 , 35.0

Any way to get this in a decimal format ? Ex : 104.109740

Thanks and Regards,
Sandeep

Hi Sandeep,

If you look in the LocationHandler class, the createLocationString() method converts the decimal values for the longitude and latitude into the "degrees, minutes, seconds" format. You should be able to skip the conversion part and take the double values from c.getLongitude() and c.getLatitude() directly. :slight_smile:

Regards,

Mark.

Thanks!!!