mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-14 18:37:58 +00:00
do not save names when falling back to addresses
If an object doesn't have a useable main tag, then the names should always be ignored, independently of the presence of housenumbers. We have to assume that the name belongs to a feature that was intentionally filtered out.
This commit is contained in:
@@ -192,7 +192,7 @@ Feature: Search queries
|
||||
Then exactly 1 result is returned
|
||||
And results contain
|
||||
| class |
|
||||
| natural |
|
||||
| water |
|
||||
|
||||
Examples:
|
||||
| data |
|
||||
|
||||
@@ -256,3 +256,16 @@ Feature: Tag evaluation
|
||||
| N21:natural | water |
|
||||
| N23:water | pond |
|
||||
| N26:natural | water |
|
||||
|
||||
Scenario: Drop name for address fallback
|
||||
When loading osm data
|
||||
"""
|
||||
n1 Taddr:housenumber=23,name=Foo
|
||||
n2 Taddr:housenumber=23,addr:housename=Foo
|
||||
n3 Taddr:housenumber=23
|
||||
"""
|
||||
Then place contains exactly
|
||||
| object | type | address | name |
|
||||
| N1:place | house | 'housenumber': '23' | - |
|
||||
| N2:place | house | 'housenumber': '23' | 'addr:housename': 'Foo' |
|
||||
| N3:place | house | 'housenumber': '23' | - |
|
||||
|
||||
Reference in New Issue
Block a user