forked from hans/Nominatim
search postcodes for highway areas around the area
So far the code would only accept postcodes that are inside the area. Fixes #3304.
This commit is contained in:
@@ -39,7 +39,7 @@ Feature: Reverse geocoding
|
||||
| way | highway |
|
||||
And result addresses contain
|
||||
| road | postcode | country_code |
|
||||
| Upper Kingston Road | 30607 | us |
|
||||
| Upper Kingston Road | 36067 | us |
|
||||
|
||||
Scenario: Interpolated house number
|
||||
When sending v1/reverse at 47.118533,9.57056562
|
||||
|
||||
@@ -115,6 +115,23 @@ Feature: Import of postcodes
|
||||
| object | postcode |
|
||||
| W93 | 45023 |
|
||||
|
||||
Scenario: Road areas get postcodes from nearby named buildings without other info
|
||||
Given the grid with origin US
|
||||
| 10 | | | | 11 |
|
||||
| 13 | | | | 12 |
|
||||
| | 1 | 2 | | |
|
||||
| | 4 | 3 | | |
|
||||
And the named places
|
||||
| osm | class | type | geometry |
|
||||
| W93 | highway | pedestriant | (10,11,12,13,10) |
|
||||
And the named places
|
||||
| osm | class | type | addr+postcode | geometry |
|
||||
| W22 | building | yes | 45023 | (1,2,3,4,1) |
|
||||
When importing
|
||||
Then placex contains
|
||||
| object | postcode |
|
||||
| W93 | 45023 |
|
||||
|
||||
Scenario: Roads get postcodes from nearby unnamed buildings without other info
|
||||
Given the grid with origin US
|
||||
| 10 | | | | 11 |
|
||||
|
||||
Reference in New Issue
Block a user