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
- in_ring(pt: tuple[float, float], ring: list[tuple[float, float]], ignore_boundary: bool) bool [source]
- test_geo_distance() None [source]