3 Feature: Geojson for Reverse API
4 Testing correctness of geojson output (API version v1).
6 Scenario Outline: Simple OSM result
7 When sending v1/reverse at 47.066,9.504 with format geojson
10 Then result has attributes place_id, importance, __licence
11 And result has <attributes> address
13 | osm_type | osm_id | place_rank | category | type | addresstype |
14 | node | 6522627624 | 30 | shop | bakery | shop |
16 | name | display_name |
17 | Dorfbäckerei Herrmann | Dorfbäckerei Herrmann, 29, Gnetsch, Mäls, Balzers, Oberland, 9496, Liechtenstein |
20 | [47.0660392, 47.0661392, 9.5035565, 9.5036565] |
21 And results contain in field geojson
22 | type | coordinates |
23 | Point | [9.5036065, 47.0660892] |
26 | has_address | attributes |
28 | 0 | not attributes |
32 Scenario: Tiger address
33 When sending v1/reverse at 32.4752389363,-86.4810198619 with format geojson
35 | osm_type | osm_id | category | type | addresstype | place_rank |
36 | way | 396009653 | place | house | place | 30 |
39 Scenario: Interpolation address
40 When sending v1/reverse at 47.118533,9.57056562 with format geojson
42 | osm_type | osm_id | place_rank | category | type | addresstype |
43 | way | 1 | 30 | place | house | place |
46 | ^\[47.118495\d*, 47.118595\d*, 9.570496\d*, 9.570596\d*\] |
49 | 1019, Grosssteg, Sücka, Triesenberg, Oberland, 9497, Liechtenstein |
52 Scenario: Line geometry output is supported
53 When sending v1/reverse at 47.06597,9.50467 with format geojson
55 | polygon_geojson | 1 |
56 Then results contain in field geojson
61 Scenario Outline: Only geojson polygons are supported
62 When sending v1/reverse at 47.06597,9.50467 with format geojson
65 Then results contain in field geojson