forked from hans/Nominatim
For point features, keep using the distance to centroid. For area features, add a tie breaker for the case where the center point falls on the boundary.
For point features, keep using the distance to centroid. For area features, add a tie breaker for the case where the center point falls on the boundary.