Improve/Robustify the get-location-data script.