]> git.openstreetmap.org Git - nominatim.git/blob - tests/features/api/reverse.feature
during reverse geocode lookup we also check the (optional) Tiger data for house numbers
[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 jsonv2 coordinates 40.6863624710666,-112.060005720023
20         # Then exactly 1 result is returned
21         # Then result addresses contain
22         # | ID | house_number | road               | postcode | country_code
23         # | 0  | 7094         | Kings Estate Drive | 84128    | us
24         Then results contain
25           | type | house
26         And results contain
27           | addresstype | place
28         And results contain
29           | road | Kings Estate Drive
30         And results contain
31           | house_number | 7094
32         And results contain
33           | postcode | 84128