]> git.openstreetmap.org Git - nominatim.git/commit
use closest containing place for unlisted addr:place
authorSarah Hoffmann <lonvia@denofr.de>
Wed, 23 Sep 2020 15:33:42 +0000 (17:33 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Wed, 23 Sep 2020 15:33:42 +0000 (17:33 +0200)
commite552f6bce557df08ef7305369664fd70dd3aed96
tree3fa83d96cbc0d32090ee319ce7418e5538e32a16
parentcf23e10382806ddbdde588f5bb1bc6111590c4e1
use closest containing place for unlisted addr:place

We can't use getNearFeatures() to determine the parent of a
place with an unlisted addr:place because this function
returns place nodes that are potentially outside the area
of interest. Doing the complete address computation is too
expensive, so simply use the area with the largest rank that
contains the feature instead.
sql/functions/placex_triggers.sql