NetTalk Central

The Rest Of NetTalk => The Rest - Ask For Help => Topic started by: lkeyser on March 08, 2018, 02:21:22 AM

Title: Convert latitude and longitude to decimal coordinates to degrees minutes seconds
Post by: lkeyser on March 08, 2018, 02:21:22 AM
Hi Everyone

The new Map feature works great !! thanks Cape Soft
One of my Client API's that I interface with,  needs to DMS info from my app.

Is there a method to change latitude and longitude to DMS format ?

Is this possible ?

Many Thanks
Louis
Title: Re: Convert latitude and longitude to decimal coordinates to degrees minutes seconds
Post by: Bruce on June 19, 2018, 02:55:53 AM
Hi Louis,

There aren't methods in the class to do it, but of course it's certainly possible.
There are 60 seconds in a minute and 60 minutes in a degree. So it's just a little math to convert from a fraction-of-a-degree to Minutes and Seconds and vice versa.

cheers
Bruce