According to wikipedia All of the following are valid and acceptable ways to write geographic coordinates: 40:26:46N,79:56:55W 40:26:46.302N 79:56:55.903W 40°26'47"N 79°58'36"W 40d 26' 47" N 79d 58' 36" W 40.446195N 79.948862W 40.446195, -79.948862 40° 26.7717, -79° 56.93172
http://en.wikipedia.org/wiki/Geographic_coordinate_conversion :) On 25/08/2009 16:09, Alexei Tenitski wrote: > > Is problem to break down string "37°46’35.90”S, 176°6’19.89”E" into > degrees-minutes-seconds? Or actual math to do the conversion? > If latter then google for "converting coordinates to decimal degrees", > nothing hard there. > > Alexei > > On 25/08/2009 15:54, Jochen Daum wrote: >> >> Hi, >> >> does anyone know a very simple way/ library to convert >> >> 37°46’35.90”S, 176°6’19.89”E >> >> into >> >> -37.775911,176.102738 >> >> I know I could write a regex, but I'm worried there are just too many >> combinations of special characters to look at. >> >> Kind Regards, >> >> Jochen Daum >> >> Chief Automation Officer >> Automatem Ltd >> >> Phone: 09 630 3425 >> Mobile: 021 567 853 >> Email: [email protected] >> Skype: jochendaum >> Website: www.automatem.co.nz >> http://twitter.com/automatem >> http://www.xing.com/go/invite/3425509.181107 >> >>> > > > --~--~---------~--~----~------------~-------~--~----~ NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to [email protected] To unsubscribe, send email to [email protected] -~----------~----~----~----~------~----~------~--~---
