]> git.openstreetmap.org Git - nominatim.git/commit
change distance computation between place and address part
authorSarah Hoffmann <lonvia@denofr.de>
Thu, 21 Apr 2022 19:56:59 +0000 (21:56 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Fri, 22 Apr 2022 12:32:09 +0000 (14:32 +0200)
commit784dad866fab9f5b2ccb72228d5eaacc7d5a070a
tree6e5b9876846b22f022ad49e816ac6b93ac76ddd0
parent403e6f7e5c9aaeee6de0aefe76bdcbdb997cf108
change distance computation between place and address part

Instead of computing the distance to the centroid of the area
compute the distance of the area to the centroid of the feature.
This means we give preference to the area that covers the centroid.
It's still a heuristics but one that is a bit less random.
lib-sql/functions/partition-functions.sql
lib-sql/functions/placex_triggers.sql
lib-sql/functions/postcode_triggers.sql