V-K*_*V-K 1 mysql sql mysql-5.6
我需要找到离地铁站最近的街区。我使用St_distance本主题中的函数: link 。如何将st_distance结果转换为公里或米?我有mysql 5.6,所以我不能使用st_distance_sphere或其他新功能。
St_distance
st_distance
st_distance_sphere
ole*_*gsv 8
您可以将结果值乘以 111195 - 该值是(地球平均半径)* PI/180 - 即“地球表面上一个大圆度数的平均长度(以米为单位)”。警告:结果不会太正确。
或者使用普通的旧半正弦公式。
归档时间:
8 年,10 月 前
查看次数:
5631 次
最近记录: