]> git.openstreetmap.org Git - nominatim.git/blob - test/bdd/db/query/japanese.feature
f21e0f5c9f9bd4b7ee70f4cfc386d353d37c5218
[nominatim.git] / test / bdd / db / query / japanese.feature
1 @DB
2 Feature: Searches in Japan
3     Test specifically for searches of Japanese addresses and in Japanese language.
4     Scenario: A block house-number is parented to the neighbourhood
5         Given the grid with origin JP
6           | 1 |   |   |   | 2 |
7           |   | 3 |   |   |   |
8           |   |   | 9 |   |   |
9           |   |   |   | 6 |   |
10         And the places
11           | osm | class   | type        | name       | geometry |
12           | W1  | highway | residential | 雉子橋通り | 1,2      |
13         And the places
14           | osm | class   | type       | housenr | addr+block_number | addr+neighbourhood | geometry |
15           | N3  | amenity | restaurant | 2       | 6                 | 2丁目              | 3        |
16         And the places
17           | osm | class | type          | name  | geometry |
18           | N9  | place | neighbourhood | 2丁目 | 9        |
19         And the places
20           | osm | class | type    | name | geometry |
21           | N6  | place | quarter | 加瀬 | 6        |
22         When importing
23         Then placex contains
24           | object | parent_place_id |
25           | N3     | N9              |
26         When sending search query "2丁目 6-2"
27         Then results contain
28           | osm |
29           | N3  |