]> git.openstreetmap.org Git - nominatim.git/commit
overhaul address computation
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 13 Oct 2020 20:10:07 +0000 (22:10 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Tue, 13 Oct 2020 20:10:07 +0000 (22:10 +0200)
commit2fe3c654fc96eb72047c0d2dd2beadc840ad48b4
tree9aea3a336b7ec55cd221abd89d798becdca701a8
parent5ec48c66cba0e9407135b2949f2a5e446d3620ed
overhaul address computation

This is a complete rewrite of the selection of address parts to
be inserted into the place_addressline table.

The new algorithm selects for each rank:
* the boundary overlapping with the addressee and contained
  in the already selected boundaries of lower rank, or failing that
* the place node closest to the addressee that is contained in
  the already selected boundaries and in the influence radius
  of already selected place nodes of lower rank

Place nodes that are not contained in already selected boundaries
of lower rank are completely thrown away. All other candidates are
added as non-address parts.
sql/functions/placex_triggers.sql
sql/functions/utils.sql