mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 05:18:00 +00:00
lookup places for address tags for rank < 30
While previously the content of addr:* tags was only added to the list of address search keywords, we now really look up the matching place. This has the advantage that we pull in all potential translations from the place, just like all the other address terms that are looked up by neighbourhood search. If no place can be found for a given name, the content of the addr:* tag is still added to the search keywords as before.
This commit is contained in:
@@ -185,16 +185,15 @@ Feature: Creation of search terms
|
||||
| object | name_vector | nameaddress_vector |
|
||||
| N1 | foo | the road |
|
||||
|
||||
Scenario: Some addr: tags are added to address when the name exists
|
||||
Scenario: Some addr: tags are added to address
|
||||
Given the scene roads-with-pois
|
||||
And the places
|
||||
| osm | class | type | name | geometry |
|
||||
| N1 | place | state | new york | 80 80 |
|
||||
| N2 | place | city | bonn | 81 81 |
|
||||
| N3 | place | suburb | smalltown| 80 81 |
|
||||
And the named places
|
||||
| osm | class | type | addr+city | addr+state | addr+suburb | geometry |
|
||||
| W1 | highway | service | bonn | New York | Smalltown | :w-north |
|
||||
| osm | class | type | addr+city | addr+municipality | addr+suburb | geometry |
|
||||
| W1 | highway | service | bonn | New York | Smalltown | :w-north |
|
||||
When importing
|
||||
Then search_name contains
|
||||
| object | nameaddress_vector |
|
||||
|
||||
Reference in New Issue
Block a user