Suppose I have latitude= 21.15490584 and longitude= 79.04627271 and add X meters, am I able to calculate new coordinates?
Asked
Active
Viewed 2,554 times
-1
-
1Is this a trigonometry or a programming question? From what I see, it's the former. – Danielson Mar 12 '18 at 07:48
-
its an programing question for me and have to find solution in php! – Ashwin Mar 12 '18 at 19:27
-
Possible duplicate of [Calculating new longitude, latitude from old + n meters](https://stackoverflow.com/questions/7477003/calculating-new-longitude-latitude-from-old-n-meters) – Sarvan Kumar Mar 13 '18 at 06:39
1 Answers
0
I think this one is worked for you...
Can you please check this...
<?php
$meters = 30;
$coef = $meters * 0.0000089;
echo $new_lat = 13.0406067 + $coef;
echo "<br>";
echo $new_long = 80.1925414 + $coef / cos(13.0406067 * 0.018);
?>
In the above example i have added 30 meters...

Sarvan Kumar
- 926
- 1
- 11
- 27
-
what is 0.0000089 value stands for ?? and can we find out angle, i mean in what angle the lat long stands for ? 30meters in which direction? – Ashwin Mar 13 '18 at 04:39