mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 05:18:00 +00:00
168 lines
6.6 KiB
Gherkin
168 lines
6.6 KiB
Gherkin
@DB
|
|
Feature: Update of address interpolations
|
|
Test the interpolated address are updated correctly
|
|
|
|
Scenario: addr:street added to interpolation
|
|
Given the scene parallel-road
|
|
And the place nodes
|
|
| osm_id | class | type | housenumber | geometry
|
|
| 1 | place | house | 2 | :n-middle-w
|
|
| 2 | place | house | 6 | :n-middle-e
|
|
And the place ways
|
|
| osm_id | class | type | housenumber | geometry
|
|
| 10 | place | houses | even | :w-middle
|
|
And the place ways
|
|
| osm_id | class | type | name | geometry
|
|
| 2 | highway | unclassified | 'name' : 'Sun Way' | :w-north
|
|
| 3 | highway | unclassified | 'name' : 'Cloud Street' | :w-south
|
|
And the ways
|
|
| id | nodes
|
|
| 10 | 1,100,101,102,2
|
|
When importing
|
|
Then table placex contains
|
|
| object | parent_place_id
|
|
| N1 | W2
|
|
| N2 | W2
|
|
| W10 | W2
|
|
And way 10 expands exactly to housenumbers 4
|
|
When updating place ways
|
|
| osm_id | class | type | housenumber | street | geometry
|
|
| 10 | place | houses | even | Cloud Street | :w-middle
|
|
Then way 10 expands exactly to housenumbers 4
|
|
And table placex contains
|
|
| object | parent_place_id
|
|
| N1 | W3
|
|
| N2 | W3
|
|
| W10 | W3
|
|
|
|
@Fail
|
|
Scenario: addr:street added to housenumbers
|
|
Given the scene parallel-road
|
|
And the place nodes
|
|
| osm_id | class | type | housenumber | geometry
|
|
| 1 | place | house | 2 | :n-middle-w
|
|
| 2 | place | house | 6 | :n-middle-e
|
|
And the place ways
|
|
| osm_id | class | type | housenumber | geometry
|
|
| 10 | place | houses | even | :w-middle
|
|
And the place ways
|
|
| osm_id | class | type | name | geometry
|
|
| 2 | highway | unclassified | 'name' : 'Sun Way' | :w-north
|
|
| 3 | highway | unclassified | 'name' : 'Cloud Street' | :w-south
|
|
And the ways
|
|
| id | nodes
|
|
| 10 | 1,100,101,102,2
|
|
When importing
|
|
Then table placex contains
|
|
| object | parent_place_id
|
|
| N1 | W2
|
|
| N2 | W2
|
|
| W10 | W2
|
|
And way 10 expands exactly to housenumbers 4
|
|
When updating place nodes
|
|
| osm_id | class | type | street | housenumber | geometry
|
|
| 1 | place | house | Cloud Street| 2 | :n-middle-w
|
|
| 2 | place | house | Cloud Street| 6 | :n-middle-e
|
|
Then way 10 expands exactly to housenumbers 4
|
|
And table placex contains
|
|
| object | parent_place_id
|
|
| N1 | W3
|
|
| N2 | W3
|
|
| W10 | W3
|
|
|
|
|
|
Scenario: interpolation tag removed
|
|
Given the scene parallel-road
|
|
And the place nodes
|
|
| osm_id | class | type | housenumber | geometry
|
|
| 1 | place | house | 2 | :n-middle-w
|
|
| 2 | place | house | 6 | :n-middle-e
|
|
And the place ways
|
|
| osm_id | class | type | housenumber | geometry
|
|
| 10 | place | houses | even | :w-middle
|
|
And the place ways
|
|
| osm_id | class | type | name | geometry
|
|
| 2 | highway | unclassified | 'name' : 'Sun Way' | :w-north
|
|
| 3 | highway | unclassified | 'name' : 'Cloud Street' | :w-south
|
|
And the ways
|
|
| id | nodes
|
|
| 10 | 1,100,101,102,2
|
|
When importing
|
|
Then table placex contains
|
|
| object | parent_place_id
|
|
| N1 | W2
|
|
| N2 | W2
|
|
| W10 | W2
|
|
And way 10 expands exactly to housenumbers 4
|
|
When marking for delete W10
|
|
Then way 10 expands to no housenumbers
|
|
And table placex contains
|
|
| object | parent_place_id
|
|
| N1 | W2
|
|
| N2 | W2
|
|
|
|
|
|
Scenario: referenced road added
|
|
Given the scene parallel-road
|
|
And the place nodes
|
|
| osm_id | class | type | housenumber | geometry
|
|
| 1 | place | house | 2 | :n-middle-w
|
|
| 2 | place | house | 6 | :n-middle-e
|
|
And the place ways
|
|
| osm_id | class | type | housenumber | street | geometry
|
|
| 10 | place | houses | even | Cloud Street| :w-middle
|
|
And the place ways
|
|
| osm_id | class | type | name | geometry
|
|
| 2 | highway | unclassified | 'name' : 'Sun Way' | :w-north
|
|
And the ways
|
|
| id | nodes
|
|
| 10 | 1,100,101,102,2
|
|
When importing
|
|
Then table placex contains
|
|
| object | parent_place_id
|
|
| N1 | W2
|
|
| N2 | W2
|
|
| W10 | W2
|
|
And way 10 expands exactly to housenumbers 4
|
|
When updating place ways
|
|
| osm_id | class | type | name | geometry
|
|
| 3 | highway | unclassified | 'name' : 'Cloud Street' | :w-south
|
|
Then way 10 expands exactly to housenumbers 4
|
|
And table placex contains
|
|
| object | parent_place_id
|
|
| N1 | W3
|
|
| N2 | W3
|
|
| W10 | W3
|
|
|
|
|
|
Scenario: referenced road deleted
|
|
Given the scene parallel-road
|
|
And the place nodes
|
|
| osm_id | class | type | housenumber | geometry
|
|
| 1 | place | house | 2 | :n-middle-w
|
|
| 2 | place | house | 6 | :n-middle-e
|
|
And the place ways
|
|
| osm_id | class | type | housenumber | street | geometry
|
|
| 10 | place | houses | even | Cloud Street| :w-middle
|
|
And the place ways
|
|
| osm_id | class | type | name | geometry
|
|
| 2 | highway | unclassified | 'name' : 'Sun Way' | :w-north
|
|
| 3 | highway | unclassified | 'name' : 'Cloud Street' | :w-south
|
|
And the ways
|
|
| id | nodes
|
|
| 10 | 1,100,101,102,2
|
|
When importing
|
|
Then table placex contains
|
|
| object | parent_place_id
|
|
| N1 | W3
|
|
| N2 | W3
|
|
| W10 | W3
|
|
And way 10 expands exactly to housenumbers 4
|
|
When marking for delete W3
|
|
Then way 10 expands exactly to housenumbers 4
|
|
And table placex contains
|
|
| object | parent_place_id
|
|
| N1 | W2
|
|
| N2 | W2
|
|
| W10 | W2
|