def filterbylocation(self,user_location):
user_lat_lon = (user_location[0], user_location[1])
pok_loc = (float(self.latitude), float(self.longitude))
return great_circle(user_lat_lon, pok_loc).km <= user_location[2]
评论列表
文章目录