mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
drop interpolations when no parent can be found
A housenumber without the place it refers to is of only limited use.
This commit is contained in:
@@ -13,6 +13,7 @@ Feature: Updates of address interpolation objects
|
||||
"""
|
||||
n1 Taddr:housenumber=3
|
||||
n2 Taddr:housenumber=17
|
||||
w33 Thighway=residential,name=Tao Nn1,n2
|
||||
"""
|
||||
Then place contains
|
||||
| object | type |
|
||||
@@ -33,6 +34,7 @@ Feature: Updates of address interpolation objects
|
||||
| object | type |
|
||||
| N1:place | house |
|
||||
| N2:place | house |
|
||||
| W33:highway | residential |
|
||||
Then location_property_osmline contains exactly
|
||||
| object |
|
||||
| 99:5 |
|
||||
@@ -73,6 +75,7 @@ Feature: Updates of address interpolation objects
|
||||
"""
|
||||
n1 Taddr:housenumber=3
|
||||
n2 Taddr:housenumber=17
|
||||
w33 Thighway=residential Nn1,n2
|
||||
w99 Thighway=residential Nn1,n2
|
||||
"""
|
||||
Then place contains
|
||||
@@ -95,6 +98,7 @@ Feature: Updates of address interpolation objects
|
||||
| object | type |
|
||||
| N1:place | house |
|
||||
| N2:place | house |
|
||||
| W33:highway | residential |
|
||||
And location_property_osmline contains exactly
|
||||
| object |
|
||||
| 99:5 |
|
||||
|
||||
@@ -136,12 +136,14 @@ Feature: Update of postcode only objects
|
||||
"""
|
||||
n1 Taddr:housenumber=3
|
||||
n2 Taddr:housenumber=17
|
||||
w33 Thighway=residential Nn1,n2
|
||||
w34 Tpostcode=4456 Nn1,n2
|
||||
"""
|
||||
Then place contains exactly
|
||||
| object | type |
|
||||
| N1:place | house |
|
||||
| N2:place | house |
|
||||
| W33:highway | residential |
|
||||
| W34:place | postcode |
|
||||
|
||||
When updating osm data
|
||||
@@ -152,6 +154,7 @@ Feature: Update of postcode only objects
|
||||
| object | type |
|
||||
| N1:place | house |
|
||||
| N2:place | house |
|
||||
| W33:highway | residential |
|
||||
| W34:place | houses |
|
||||
When indexing
|
||||
Then location_property_osmline contains exactly
|
||||
@@ -161,3 +164,4 @@ Feature: Update of postcode only objects
|
||||
| object | type |
|
||||
| N1:place | house |
|
||||
| N2:place | house |
|
||||
| W33:highway | residential |
|
||||
|
||||
Reference in New Issue
Block a user