How can I get latitude and longitude "x" meter from latitude and longitude?

I have distance in meters and latitude and longitude. Now I want the latitude and longitude from this return point at x meters in four directions (south, north, east and west).

How can I get this value?

I need to write this in C #, but any pseudo-code or logical manual would be welcome.

Update:

I have coordinates as a reference point from the fact that I want to calculate distances of 5 meters in the north direction, keeping the longitude constant. Therefore, I want to calculate latitude at a distance of 5 meters from my control point. I must do the same for all three directions in the east-west direction. I maintain longitude as constant.

Please let me know if any formula we can use for this.

+3
source share
4 answers

How accurate is that? You can often assume that the earth is a sphere with a radius of 6360 km. In this case, one degree to the north or south is 10,000 / 90 kilometers (as the meter is determined). East / West is only slightly heavier, one degree east is 10,000 / 90 km * cos (latitude).

+8
source

This ammunition overview spreadsheet contains complete conversions in the vb macro that can be converted.

He should be able to give you a new location based on degrees and time.

: , ; ; .

+1

- : Pi radian 180 . - ( ) - * . , 1 * pi/180 * 6360Km = 110,947Km, pi = 3,14.

- , , , .

0

Javascript:

function translateCoordinates(distance, Lat,Lng, angle) {
    distanceNorth = Math.sin(angle) * distance;
    distanceEast = Math.cos(angle) * distance;
    earthRadius = 6371000;
    newLat = Lat + (distanceNorth / earthRadius) * 180 / Math.PI;
    newLon = Lng + (distanceEast / (earthRadius * Math.cos(newLat * 180 / Math.PI))) * 180 / Math.PI;

    return [newLat, newLon];
}

, #

0
source

Source: https://habr.com/ru/post/1795420/


All Articles