mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-22 12:06:27 +03:00
flex style: reinstate postcode boundaries
Postcode boundaries don't have a name, so need to be imported unconditionally.
This commit is contained in:
parent
ee0366af88
commit
7d30dbebc5
@ -17,7 +17,7 @@ flex.set_main_tags{
|
||||
secondary_link = 'named',
|
||||
tertiary_link = 'named'},
|
||||
boundary = {administrative = 'named',
|
||||
postal_code = 'named'},
|
||||
postal_code = 'always'},
|
||||
landuse = 'fallback',
|
||||
place = 'always'
|
||||
}
|
||||
|
@ -27,7 +27,7 @@ flex.set_main_tags{
|
||||
man_made = 'always',
|
||||
aerialway = 'always',
|
||||
boundary = {'named',
|
||||
postal_code = 'named'},
|
||||
postal_code = 'always'},
|
||||
aeroway = 'always',
|
||||
amenity = 'always',
|
||||
club = 'always',
|
||||
|
@ -27,7 +27,7 @@ flex.set_main_tags{
|
||||
man_made = 'always',
|
||||
aerialway = 'always',
|
||||
boundary = {'named',
|
||||
postal_code = 'named'},
|
||||
postal_code = 'always'},
|
||||
aeroway = 'always',
|
||||
amenity = 'always',
|
||||
club = 'always',
|
||||
|
@ -16,7 +16,8 @@ flex.set_main_tags{
|
||||
primary_link = 'named',
|
||||
secondary_link = 'named',
|
||||
tertiary_link = 'named'},
|
||||
boundary = {administrative = 'named'},
|
||||
boundary = {administrative = 'named',
|
||||
postal_code = 'always'},
|
||||
landuse = 'fallback',
|
||||
place = 'always'
|
||||
}
|
||||
|
@ -101,6 +101,19 @@ Feature: Tag evaluation
|
||||
| N6003 | shop | - |
|
||||
|
||||
|
||||
Scenario: Postcode areas
|
||||
When loading osm data
|
||||
"""
|
||||
n1 x12.36853 y51.50618
|
||||
n2 x12.36853 y51.42362
|
||||
n3 x12.63666 y51.42362
|
||||
n4 x12.63666 y51.50618
|
||||
w1 Tboundary=postal_code,ref=3456 Nn1,n2,n3,n4,n1
|
||||
"""
|
||||
Then place contains exactly
|
||||
| object | class | type | name |
|
||||
| W1 | boundary | postal_code | 'ref': '3456' |
|
||||
|
||||
Scenario: Main with extra
|
||||
When loading osm data
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user