python计算两个地标之间的直线距离
2020-11-05 本文已影响0人
吱吱菌啦啦
from geopy.distance import geodesic
print(geodesic((39.929708,116.330847), (39.90187840,116.32769780)).m)
print结果:
3101.713068339064
from geopy.distance import geodesic
print(geodesic((39.929708,116.330847), (39.90187840,116.32769780)).m)
print结果:
3101.713068339064