I have GPS information presented in the form:
36°57'9" N 110°4'21" W
I can use the javascript functions of Chris Veness to convert degrees, minutes and seconds to numeric degrees, but first need to parse the GPS info into the individual latitude and longitude strings (with NSEW suffixes). I have read related posts on stackoverflow, but am not a regex expert (nor a programmer) and need some help with the parsing function. What's the best way to parse this string into latitude and longitude for use in the conversion function?
The result of all this will be a Web link that one can click on to see a Google map representation of location.
I got some NaN's on this function and needed to do this (don't ask me why)