Halfway through the code to determine which location is closest (had to stop due to daughter waking up).