Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找一种算法(php 是最理想的),它可以在给定两组坐标(开始和结束)的情况下以给定的间隔(比如每英里)计算沿该路径的地理坐标。请注意,我不是在寻找 Bresenham 算法之类的东西——我想要沿路径的确切坐标。
您需要沿着穿过起点和终点的大圆找到给定距离的点的纬度/经度。你会发现这里制定的公式,你应该能够适应你的用例。