getDistance($coordinate1, $coordinate2); $distance = round($distance / 1000); } return $distance; } }