How do I calculate the Azimuth (angle to north) between two WGS84 coordinates

后端 未结 6 2170
被撕碎了的回忆
被撕碎了的回忆 2020-12-25 09:52

I have got two WGS84 coordinates, latitude and longitude in degrees. These points are rather close together, e.g. only one metre apart.

Is there an easy way to calcu

6条回答
  •  Happy的楠姐
    2020-12-25 10:21

    I would recommend implementing a correction factor based on the longitude. I implemented a simular routine once to return all geocoded records within x miles of a specific spot and ran into simular issues. Unfortunately I don't have the code anymore, and can't seem to recall how I got to the correction number but you are on the right track.

提交回复
热议问题