mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
put postcodes in extra table on import
This commit is contained in:
@@ -92,12 +92,16 @@ Feature: Tag evaluation
|
||||
n6001 Tshop=bank,addr:postcode=12345
|
||||
n6002 Tshop=bank,tiger:zip_left=34343
|
||||
n6003 Tshop=bank,is_in:postcode=9009
|
||||
n6004 Taddr:postcode=54322
|
||||
"""
|
||||
Then place contains exactly
|
||||
| object | class | address!dict |
|
||||
| N6001 | shop | 'postcode': '12345' |
|
||||
| N6002 | shop | 'postcode': '34343' |
|
||||
| N6003 | shop | - |
|
||||
And place_postcode contains exactly
|
||||
| object | postcode | geometry |
|
||||
| N6004 | 54322 | - |
|
||||
|
||||
|
||||
Scenario: Postcode areas
|
||||
@@ -107,11 +111,15 @@ Feature: Tag evaluation
|
||||
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
|
||||
w1 Nn1,n2,n3,n4,n1
|
||||
w2 Tboundary=postal_code,postal_code=443 Nn1,n2,n3,n4,n1
|
||||
r1 Ttype=boundary,boundary=postal_code,postal_code=3456 Mw1@
|
||||
"""
|
||||
Then place contains exactly
|
||||
| object | class | type | name!dict |
|
||||
| W1 | boundary | postal_code | 'ref': '3456' |
|
||||
| object |
|
||||
And place_postcode contains exactly
|
||||
| object | postcode | geometry!wkt |
|
||||
| R1 | 3456 | (12.36853 51.50618, 12.36853 51.42362, 12.63666 51.42362, 12.63666 51.50618, 12.36853 51.50618) |
|
||||
|
||||
Scenario: Main with extra
|
||||
When loading osm data
|
||||
@@ -192,7 +200,9 @@ Feature: Tag evaluation
|
||||
| N12001 | tourism | hotel |
|
||||
| N12003 | building | shed |
|
||||
| N12004 | building | yes |
|
||||
| N12005 | place | postcode |
|
||||
And place_postcode contains exactly
|
||||
| object | postcode | geometry |
|
||||
| N12005 | 12345 | - |
|
||||
|
||||
|
||||
Scenario: Address interpolations
|
||||
|
||||
Reference in New Issue
Block a user