0

Possible Duplicate:
How to Convert DD to DMS in Python
Convert decimal coordinates to Degrees, Minutes & Seconds by c#

How can I convert a pair of decimal coordinates to degrees, as seen below?

>>> s.GPSCoordinatesDec
[40.650166666666664, -73.78183333333334]
Community
  • 1
  • 1
ensnare
  • 40,069
  • 64
  • 158
  • 224
  • Was really hoping to see a "pythonic" example. I'm still learning the language and want to make sure things are done right. Thanks. – ensnare Mar 15 '12 at 16:25
  • Those *are* degrees. Did you mean to convert the decimal fraction to minutes and seconds? – Karl Knechtel Mar 15 '12 at 16:32

1 Answers1

-1

How to Convert DD to DMS in Python

Community
  • 1
  • 1
Martin Beckett
  • 94,801
  • 28
  • 188
  • 263