Properly determines which city is closest.