Simple function for parsing latitude/longitude values from a string