]> git.openstreetmap.org Git - nominatim.git/blob - test/bdd/features/db/import/entrances.feature
Merge pull request #3859 from lonvia/fix-entrance-addresses
[nominatim.git] / test / bdd / features / db / import / entrances.feature
1 Feature: Entrance nodes are recorded
2     Test that imported entrance nodes are saved
3
4     Scenario: A building with two entrances
5         Given the grid
6           | 1 | 2 |
7           | 4 | 3 |
8         Given the places
9           | osm | class    | type  | geometry    | extratags           |
10           | W1  | building | yes   | (1,2,3,4,1) |                     |
11         And the entrances
12           | osm | type  | geometry    | extratags           |
13           | N1  | main  | 1           | 'wheelchair': 'yes' |
14           | N2  | yes   | 3           |                     |
15         And the ways
16           | id | nodes     |
17           | 1  | 1,2,3,4,1 |
18         When importing
19         Then placex contains exactly
20          | object | place_id |
21          | W1     | 1        |
22         Then placex_entrance contains exactly
23          | place_id | osm_id | type | location!wkt | extratags             |
24          | 1        | 1      | main | 1            | {'wheelchair': 'yes'} |
25          | 1        | 2      | yes  | 3            | {}                    |