added location distanceTo function