from geographiclib.geodesic import Geodesic
from geographiclib.geodesic import Geodesic
coords_1 = (float(lat1_in_degrees), float(long1_in_degrees))
coords_2 = (float(lat2_in_degrees), float(long2_in_degrees))
from geographiclib.geodesic import Geodesic
#以M为单位显示
print(geopy.distance.geodesic(coords_1, coords_2).m)
#以KM为单位显示
print(geopy.distance.geodesic(coords_1, coords_2).km)
1.coords_1/2 中的参数必须以度为进制,原始GPS数据常以度分,需要进行相应转化
2.应用时注意经纬度的最小步进量