]> git.openstreetmap.org Git - nominatim.git/blob - test/bdd/api/reverse/queries.feature
tests: more coverage for all API endpoints
[nominatim.git] / test / bdd / api / reverse / queries.feature
1 @APIDB
2 Feature: Reverse geocoding
3     Testing the reverse function
4
5     @Tiger
6     Scenario: TIGER house number
7         When sending jsonv2 reverse coordinates 45.3345,-97.5214
8         Then results contain
9           | osm_type | category | type |
10           | way      | place    | house |
11         And result addresses contain
12           | house_number | road            | postcode | country_code |
13           | 906          | West 1st Street | 57274    | us |
14
15     @Tiger
16     Scenario: No TIGER house number for zoom < 18
17         When sending jsonv2 reverse coordinates 45.3345,-97.5214
18           | zoom |
19           | 17 |
20         Then results contain
21           | osm_type | category |
22           | way      | highway  |
23         And result addresses contain
24           | road            | postcode | country_code |
25           | West 1st Street | 57274    | us |
26
27     Scenario: Interpolated house number
28         When sending jsonv2 reverse coordinates -33.231795578514635,-54.38682173844428
29         Then results contain
30           | osm_type | category | type |
31           | way      | place    | house |
32         And result addresses contain
33           | house_number | road |
34           | 1410         | Juan Antonio Lavalleja |