Programing Language: latitude-longitude-decimalize

Thad Floryan thad at thadlabs.com
Tue Nov 29 18:50:33 EST 2011


On 11/29/2011 2:53 PM, Xah Lee wrote:
> fun programing exercise. Write a function “latitude-longitude-
> decimalize”.
> 
> It should take a string like this: 「"37°26′36.42″N 06°15′14.28″W"」.
> The return value should be a pair of numbers, like this: 「[37.44345
> -6.25396]」.
> 
> Feel free to use perl, python, ruby, lisp, etc. I'll post a emacs lisp
> solution in a couple of days.

What a waste of time when the following works fine (probably Java):

<http://transition.fcc.gov/mb/audio/bickel/DDDMMSS-decimal.html>




More information about the Python-list mailing list