want to calculate the lat,long which is 50 meter far away from the start of the blockage road. Using the below line of code to calculate the lat,long but it calculate randomly in ant direction instead of proper direction.
define("RADIUSOFEARTH", 6378.0);
$latitude = 50.09469;
$longitude = 8.68162;
$new_latitude = $latitude + (50 / RADIUSOFEARTH) * (180 / PI); //50 in meters
$new_longitude = $longitude + (50 / RADIUSOFEARTH) * (180 / PI) / cos($latitude * PI/180); //50 in meters
echo $new_latitude .PHP_EOL;
echo $new_longitude;