3 Feature: XML output for Reverse API
4 Testing correctness of xml output (API version v1).
6 Scenario Outline: OSM result with and without addresses
7 When sending v1/reverse at 47.066,9.504 with format xml
10 Then result has attributes place_id
11 Then result has <attributes> address
13 | osm_type | osm_id | place_rank | address_rank |
14 | node | 6522627624 | 30 | 30 |
16 | centroid | boundingbox |
17 | 9.5036065 47.0660892 | 47.0660392,47.0661392,9.5035565,9.5036565 |
19 | ref | display_name |
20 | Dorfbäckerei Herrmann | Dorfbäckerei Herrmann, 29, Gnetsch, Mäls, Balzers, Oberland, 9496, Liechtenstein |
23 | has_address | attributes |
25 | 0 | not attributes |
29 Scenario: Tiger address
30 When sending v1/reverse at 32.4752389363,-86.4810198619 with format xml
32 | osm_type | osm_id | place_rank | address_rank |
33 | way | 396009653 | 30 | 30 |
35 | centroid | boundingbox |
36 | -86.4808553 32.4753580 | ^32.4753080\d*,32.4754080\d*,-86.4809053\d*,-86.4808053\d* |
39 | 707, Upper Kingston Road, Upper Kingston, Prattville, Autauga County, 36067, United States |
42 Scenario: Interpolation address
43 When sending v1/reverse at 47.118533,9.57056562 with format xml
45 | osm_type | osm_id | place_rank | address_rank |
48 | centroid | boundingbox |
49 | 9.57054676 47.118545392 | ^47.118495\d*,47.118595\d*,9.570496\d*,9.570596\d* |
52 | 1019, Grosssteg, Sücka, Triesenberg, Oberland, 9497, Liechtenstein |
55 Scenario: Output of geojson
56 When sending v1/reverse at 47.06597,9.50467 with format xml
58 | polygon_geojson | 1 |
61 | {"type":"LineString","coordinates":[[9.5039353,47.0657546],[9.5040437,47.0657781],[9.5040808,47.065787],[9.5054298,47.0661407]]} |
64 Scenario: Output of WKT
65 When sending v1/reverse at 47.06597,9.50467 with format xml
70 | ^LINESTRING\(9.5039353 47.0657546, ?9.5040437 47.0657781, ?9.5040808 47.065787, ?9.5054298 47.0661407\) |
73 Scenario: Output of SVG
74 When sending v1/reverse at 47.06597,9.50467 with format xml
79 | M 9.5039353 -47.0657546 L 9.5040437 -47.0657781 9.5040808 -47.065787 9.5054298 -47.0661407 |
82 Scenario: Output of KML
83 When sending v1/reverse at 47.06597,9.50467 with format xml
88 | ^<geokml><LineString><coordinates>9.5039\d*,47.0657\d* 9.5040\d*,47.0657\d* 9.5040\d*,47.065\d* 9.5054\d*,47.0661\d*</coordinates></LineString></geokml> |