]> git.openstreetmap.org Git - nominatim.git/commitdiff
highway:construction should appear as 'road' in the address list
authorSarah Hoffmann <lonvia@denofr.de>
Wed, 22 Apr 2020 07:08:33 +0000 (09:08 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Wed, 22 Apr 2020 07:08:33 +0000 (09:08 +0200)
Fixes #1763.

lib/ClassTypes.php
test/bdd/api/reverse/addressdetails.feature [new file with mode: 0644]

index 60f18d959aca35252d6851529da36cb0f4991cb3..a7c2cd4f8e25159d1d9a15a31d76511ef55202ab 100644 (file)
@@ -268,7 +268,7 @@ function getList()
             'tourism:caravan_site' => array('label' => 'Caravan Site', 'frequency' => 183, 'icon' => 'accommodation_caravan_park'),
             'amenity:bus_station' => array('label' => 'Bus Station', 'frequency' => 181, 'icon' => 'transport_bus_station'),
             'amenity:kindergarten' => array('label' => 'Kindergarten', 'frequency' => 179),
-            'highway:construction' => array('label' => 'Construction', 'frequency' => 176),
+            'highway:construction' => array('label' => 'Construction', 'frequency' => 176, 'simplelabel' => 'road'),
             'amenity:atm' => array('label' => 'Atm', 'frequency' => 172, 'icon' => 'money_atm2'),
             'amenity:emergency_phone' => array('label' => 'Emergency Phone', 'frequency' => 164),
             'waterway:lock' => array('label' => 'Lock', 'frequency' => 146),
diff --git a/test/bdd/api/reverse/addressdetails.feature b/test/bdd/api/reverse/addressdetails.feature
new file mode 100644 (file)
index 0000000..5aa3846
--- /dev/null
@@ -0,0 +1,10 @@
+@APIDB
+Feature: Reverse addressdetails
+    Tests for addressdetails in reverse queries
+
+    #github #1763
+    Scenario: Correct translation of highways under construction
+        When sending jsonv2 reverse coordinates -34.0290514,-53.5832235
+        Then result addresses contain
+        | road |
+        | Ruta 9 Coronel Leonardo Olivera |