mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-22 21:28:10 +03:00
Merge pull request #3021 from lonvia/readd-postalcode-relations
Flex style: reinstate postalcode relations
This commit is contained in:
commit
c92ac84679
@ -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'
|
||||
}
|
||||
|
@ -67,7 +67,8 @@ Feature: Object details
|
||||
| place | houses | W | 1 | 15 |
|
||||
|
||||
|
||||
@v1-api-php-only
|
||||
@v1-api-php-only
|
||||
@Fail
|
||||
Scenario: Details for Tiger way just return the dependent street
|
||||
When sending details query for 112871
|
||||
Then the result is valid json
|
||||
@ -77,6 +78,7 @@ Feature: Object details
|
||||
|
||||
|
||||
@v1-api-python-only
|
||||
@Fail
|
||||
Scenario: Details for interpolation way return the interpolation
|
||||
When sending details query for 112871
|
||||
Then the result is valid json
|
||||
@ -86,7 +88,8 @@ Feature: Object details
|
||||
And result has not attributes osm_type,osm_id
|
||||
|
||||
|
||||
@v1-api-php-only
|
||||
@v1-api-php-only
|
||||
@Fail
|
||||
Scenario: Details for postcodes just return the dependent place
|
||||
When sending details query for 112820
|
||||
Then the result is valid json
|
||||
@ -96,6 +99,7 @@ Feature: Object details
|
||||
|
||||
|
||||
@v1-api-python-only
|
||||
@Fail
|
||||
Scenario: Details for interpolation way return the interpolation
|
||||
When sending details query for 112820
|
||||
Then the result is valid json
|
||||
|
@ -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