nearest neighbor search based on QgsGeometry to QgsGeometries Previously only point - geometry was possible. But with this change, you can safely and accurately use QgsSpatialIndex to determine the nearest neighbours between any types of geometries.