2 Feature: Geojson for Reverse API
3 Testing correctness of geojson output (API version v1).
5 Scenario Outline: Simple OSM result
6 When sending v1/reverse at 47.066,9.504 with format geojson
9 Then result has attributes place_id, importance, __licence
10 And result has <attributes> address
12 | osm_type | osm_id | place_rank | category | type | addresstype |
13 | node | 6522627624 | 30 | shop | bakery | shop |
15 | name | display_name |
16 | Dorfbäckerei Herrmann | Dorfbäckerei Herrmann, 29, Gnetsch, Mäls, Balzers, Oberland, 9496, Liechtenstein |
19 | [47.0660392, 47.0661392, 9.5035565, 9.5036565] |
20 And results contain in field geojson
21 | type | coordinates |
22 | Point | [9.5036065, 47.0660892] |
25 | has_address | attributes |
27 | 0 | not attributes |
31 Scenario: Tiger address
32 When sending v1/reverse at 32.4752389363,-86.4810198619 with format geojson
34 | osm_type | osm_id | category | type | addresstype | place_rank |
35 | way | 396009653 | place | house | place | 30 |
38 Scenario: Interpolation address
39 When sending v1/reverse at 47.118533,9.57056562 with format geojson
41 | osm_type | osm_id | place_rank | category | type | addresstype |
42 | way | 1 | 30 | place | house | place |
45 | [47.118495392, 47.118595392, 9.57049676, 9.57059676] |
48 | 1019, Grosssteg, Sücka, Triesenberg, Oberland, 9497, Liechtenstein |
51 Scenario: Line geometry output is supported
52 When sending v1/reverse at 47.06597,9.50467 with format geojson
54 | polygon_geojson | 1 |
55 Then results contain in field geojson
60 Scenario Outline: Only geojson polygons are supported
61 When sending v1/reverse at 47.06597,9.50467 with format geojson
64 Then results contain in field geojson