Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.
#Automation
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.
Regards,
Mark.
Thanks!!!