]> git.openstreetmap.org Git - nominatim.git/commit
fix handling of zero importance
authorSarah Hoffmann <lonvia@denofr.de>
Wed, 29 Jun 2022 15:54:30 +0000 (17:54 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Wed, 29 Jun 2022 15:54:30 +0000 (17:54 +0200)
commit161d83af5b5537199dab4e0048a6c4c835521d93
treec15bdb2d4df7ca721341fbbb38cd1bb93dfcd5c7
parent3bf3b894eaddd4f17f7e92353af6b2aa6200ab20
fix handling of zero importance

To avoid importance becoming zero and cancelling out other weights,
df008d99f549d850d07580b4592435388e44387c introduced a minimum value
for importance. That broke importances for interpolated addresses,
which are less than zero.

Instead of setting a minimum, set zero importances to a very small
value.

Fixes #2753.
lib-php/Geocode.php