开发者

GPS delta coordinates to meters

开发者 https://www.devze.com 2023-02-03 00:19 出处:网络
开发者_如何学GoGreetings, I have two coordinates: (52.4412396, -6.563223) and (52.8912397, -6.683669)

开发者_如何学GoGreetings,

I have two coordinates:

(52.4412396, -6.563223)

and

(52.8912397, -6.683669)

The delta is:

(-0.4499999, 0.120446)

The distance moved is:

sqrt((-0.4499999)^2+(0.120446)^2)
=.465840261

How do I convert this to meters?!

I hope someone can help.

Many thanks in advance,


You have mistakenly done the sum of squares on spherical coordinates. Each difference has to be converted to its longitudinal and latitudinal distance before getting the hypotenuse. While latitude converts directly to distance, (each degree is equal to 60 nautical miles) the longitude will only do that at the equator) That means that you have to multiply the above by the cosine of the latitude. Then you can move on to a simple hypotenuse calculation before converting to meters.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号