import math
from shapely.geometry import Point
"""
计算两经纬度点之间的距离(单位:m)
"""
def get_distinct(point1,point2):
# 度转弧度
lat1 = point1.x * math.pi / 180
lng1 = point1.y * math.pi / 180
lat2 = point2.x * math.pi / 180
lng2 = point2.y * math.pi / 180
EARTH_RADIUS=6378137 #地球半径(米)
distinct=math.sqrt(haversin(lng2-lng1)+math.cos(lng1)*math.cos(lng2)*haversin(lat2-lat1))*2*EARTH_RADIUS
return distinct