]> git.openstreetmap.org Git - nominatim.git/blob - test/bdd/api/lookup/simple.feature
Merge branch 'patch-1' of https://github.com/ganeshkrishnan1/Nominatim into ganeshkri...
[nominatim.git] / test / bdd / api / lookup / simple.feature
1 @APIDB
2 Feature: Places by osm_type and osm_id Tests
3     Simple tests for response format.
4
5     Scenario Outline: address lookup for existing node, way, relation
6         When sending <format> lookup query for N3284625766,W6065798,,R123924,X99,N0
7         Then the result is valid <outformat>
8         And exactly 3 results are returned
9
10     Examples:
11         | format      | outformat   |
12         | xml         | xml         |
13         | json        | json        |
14         | jsonv2      | json        |
15         | geojson     | geojson     |
16         | geocodejson | geocodejson |
17
18     Scenario: address lookup for non-existing or invalid node, way, relation
19         When sending xml lookup query for X99,,N0,nN158845944,ABC,,W9
20         Then exactly 0 results are returned
21
22     Scenario Outline: Boundingbox is returned
23         When sending <format> lookup query for N3284625766,W6065798
24         Then exactly 2 results are returned
25         And result 0 has bounding box in -32.812,-32.811,-56.509,-56.508
26         And result 1 has bounding box in 47.14,47.15,9.51,9.53
27
28     Examples:
29       | format |
30       | json |
31       | jsonv2 |
32       | geojson |
33       | xml |