How can I find long long points with a given long long value and distance

I have point A (52.132781727864, -106,63492619991302). From point A, I would like to get a lat, long point B, which is 5 km south of point A.

How can I get the long point of point B? I am coding in Java.

Edit: If the point is in the southeast, what should I do?

+3
source share
5 answers

5 km in the corners = ((5 / (6371 * pi)) * 180) = 0.0449660803. This number must be subtracted from latitude. Longitude remains the same.

PS. Thanks to Carlos Heuberger for the correction.

+4
source

GeoTools , ( ). , GeodeticCalculator, ( ), .

+1

" long long, ", ( 1000 )

d = dist / 111.12      (1)
dlat = d * cos(dir)
latm = lat1 + dlat / 2
dlon = d * sin(dir) / cos(latm)

lat2 = lat1 + dlat
lon2 = lon1 + dlon

:
- lat1 lon1 - ( ) - dist -
- dir - (2)
- lat2 lon2 -

(1), , (2) dir = 135° -


Astrosail - Mittelbreitenverfahren

+1

. UTM, , , , , -

0

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


All Articles