且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

PHP中使用haversine的两个坐标之间的距离

更新时间:2023-02-02 07:50:11

1)这将返回什么单位?(目标在脚下)

1) what units this is returning? (goal being in feet)

提供地球半径的任何单位.

Whatever units in which you supply the Earth's radius.

2)这个公式写的正确吗?

2) is this equation written the right way?

测试一下.您可以将结果与现有的Haversine公式实现进行比较,例如.

Test it. You can compare your results with an existing Haversine formula implementation, like this one.