]> git.openstreetmap.org Git - nominatim.git/blob - test/bdd/db/query/search_simple.feature
tests for finding non-ascii housenumbers
[nominatim.git] / test / bdd / db / query / search_simple.feature
1 @DB
2 Feature: Searching of simple objects
3     Testing simple stuff
4
5     Scenario: Search for place node
6         Given the places
7           | osm | class | type    | name+name | geometry   |
8           | N1  | place | village | Foo       | 10.0 -10.0 |
9         When importing
10         And searching for "Foo"
11         Then results contain
12          | ID | osm | class | type    | centroid |
13          | 0  | N1  | place | village | 10 -10   |
14
15      Scenario: Updating postcode in postcode boundaries without ref
16         Given the places
17           | osm | class    | type        | postcode | geometry |
18           | R1  | boundary | postal_code | 12345    | poly-area:1.0 |
19         When importing
20         And searching for "12345"
21         Then results contain
22          | ID | osm_type | osm_id |
23          | 0  | R        | 1 |
24         When updating places
25           | osm | class    | type        | postcode | geometry |
26           | R1  | boundary | postal_code | 54321    | poly-area:1.0 |
27         And searching for "12345"
28         Then results contain
29          | osm_type |
30          | P        |
31         When searching for "54321"
32         Then results contain
33          | ID | osm_type | osm_id |
34          | 0  | R        | 1 |
35
36     # github #1763
37     Scenario: Correct translation of highways under construction
38         Given the grid
39          | 1 |  |   |  | 2 |
40          |   |  | 9 |  |   |
41         And the places
42          | osm | class   | type         | name      | geometry |
43          | W1  | highway | construction | The build | 1,2      |
44          | N1  | amenity | cafe         | Bean      | 9        |
45         When importing
46         And sending json search query "Bean" with address
47         Then result addresses contain
48          | amenity | road |
49          | Bean    | The build |