]> git.openstreetmap.org Git - nominatim.git/blob - tests/features/api/reverse.feature
Merge branch 'mobile-responsive' of https://github.com/mtmail/Nominatim into mobile...
[nominatim.git] / tests / features / api / reverse.feature
1 Feature: Reverse geocoding
2     Testing the reverse function
3
4     # Make sure country is not overwritten by the postcode
5     Scenario: Country is returned
6         Given the request parameters
7           | accept-language
8           | de
9         When looking up coordinates 53.9788769,13.0830313
10         Then result addresses contain 
11          | ID | country
12          | 0  | Deutschland
13
14     @Tiger
15     Scenario: TIGER house number
16         Given the request parameters
17           | addressdetails
18           | 1
19         When looking up coordinates 40.6863624710666,-112.060005720023
20         And exactly 1 result is returned
21         And result addresses contain
22           | ID | house_number | road               | postcode | country_code
23           | 0  | 7094         | Kings Estate Drive | 84128    | us
24         And result 0 has not attributes osm_id,osm_type
25
26
27     @Tiger
28     Scenario: No TIGER house number for zoom < 18
29         Given the request parameters
30           | addressdetails | zoom
31           | 1              | 17
32         When looking up coordinates 40.6863624710666,-112.060005720023
33         And exactly 1 result is returned
34         And result addresses contain
35           | ID | road               | postcode | country_code
36           | 0  | Kings Estate Drive | 84128    | us
37         And result 0 has attributes osm_id,osm_type
38
39    Scenario Outline: Reverse Geocoding with extratags
40         Given the request parameters
41           | extratags
42           | 1
43         When looking up <format> coordinates 48.86093,2.2978
44         Then result 0 has attributes extratags
45
46    Examples:
47         | format
48         | xml
49         | json
50         | jsonv2
51
52    Scenario Outline: Reverse Geocoding with namedetails
53         Given the request parameters
54           | namedetails
55           | 1
56         When looking up <format> coordinates 48.86093,2.2978
57         Then result 0 has attributes namedetails
58
59    Examples:
60         | format
61         | xml
62         | json
63         | jsonv2