qdrant_client.local.geo module¶
- boolean_point_in_polygon(point: Tuple[float, float], exterior: List[Tuple[float, float]], interiors: List[List[Tuple[float, float]]]) bool [source]¶
- geo_distance(lon1: float, lat1: float, lon2: float, lat2: float) float [source]¶
Calculate distance between two points on Earth using Haversine formula.
- Parameters
lon1 – longitude of first point
lat1 – latitude of first point
lon2 – longitude of second point
lat2 – latitude of second point
- Returns
distance in meters