Get location data from a string