Converting latitude and longitude to decimal values
问题 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