]> git.openstreetmap.org Git - nominatim.git/blob - tests/features/api/search_order.feature
fix case sensitivity of cyrillic ghe
[nominatim.git] / tests / features / api / search_order.feature
1 Feature: Result order for Geocoding
2     Testing that importance ordering returns sensible results
3
4     Scenario Outline: city order in street search
5         When sending json search query "<street>, <city>" with address
6         Then address of result 0 contains
7          | type   | value
8          | <type> | <city>
9
10     Examples:
11         | type   | city            | street
12         | city   | Zürich          | Rigistr
13         | city   | Karlsruhe       | Sophienstr
14         | city   | München         | Karlstr
15         | city   | Praha           | Dlouhá
16
17     Scenario Outline: use more important city in street search
18         When sending json search query "<street>, <city>" with address
19         Then result addresses contain
20           | ID | country_code
21           | 0  | <country>
22
23     Examples:
24         | country | city       | street
25         | gb      | London     | Main St
26         | gb      | Manchester | Central Street
27
28     # https://trac.openstreetmap.org/ticket/5094
29     Scenario: housenumbers are ordered by complete match first
30         When sending json search query "4 Докукина Москва" with address
31         Then result addresses contain
32           | ID | house_number
33           | 0  | 4