elseif($lonlatCity != $lonlatCp && $lonlatCp['lat'] !== null && $lonlatCity['lat'] !== null) {
// echo 'not the same';
// not the same center
// merge value to get center of 2 points
$mergedLatLon = [array_values($lonlatCity),array_values($lonlatCp)];
$center = GetCenterFromDegrees($mergedLatLon);
// reattribute $lon & $lat from middle of two points
$lon = $center[0];
$lat = $center[1];
$results=getzipdistance(getNextZipcode($zipcode, $state), $lon, $lat, $state,$recherche,$sword,$radius,$tri,$order);
}else{
//Par defaut on cherche sur la ville
$results=getsworddistante($city,$radius,$recherche,$state,$tri,$order);
$results2=getonesword($city,$state,$recherche,$tri,$order);
$results = array_merge($results,$results2);
}
To locate a therapist (in Swiss, Germany, Austria), please fill in a search term (as first name, surname) or fill in the postal code and the maximum distance you are willing to cover.