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.

  • lon1 – longitude of first point

  • lat1 – latitude of first point

  • lon2 – longitude of second point

  • lat2 – latitude of second point


distance in meters

in_ring(pt: Tuple[float, float], ring: List[Tuple[float, float]], ignore_boundary: bool) bool[source]
test_geo_distance() None[source]


Learn more about Qdrant vector search project and ecosystem

Discover Qdrant

Similarity Learning

Explore practical problem solving with Similarity Learning

Learn Similarity Learning


Find people dealing with similar problems and get answers to your questions

Join Community