Formula/algorithm to offset GPS coordinations

2019-03-06 05:09发布

I have GPS coordinates provided as degrees latitude, longitude and would like to offset them by a distance and an angle.

E.g.: What are the new coordinates if I offset 45.12345, 7.34567 by 22km along bearing 104 degrees ?

Thanks

1条回答
男人必须洒脱
2楼-- · 2019-03-06 05:44

For most applications one of these two formulas are sufficient:

"Lat/lon given radial and distance"

The second one is slower, but makes less problems in special situations (see docu on that page).
Read the introduction on that page, and make sure that lat/lon are converted to radians before and back to degrees after having the result. Make sure that your system uses atan2(y,x) (which is usually the case) and not atan2(x,y) which is the case in Excell.

查看更多
登录 后发表回答