From: Sarah Hoffmann Date: Wed, 22 Apr 2020 07:08:33 +0000 (+0200) Subject: highway:construction should appear as 'road' in the address list X-Git-Tag: v3.5.0~34 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/207efe700f126ca0a6b714a6f9a6885b6ab11b70 highway:construction should appear as 'road' in the address list Fixes #1763. --- diff --git a/lib/ClassTypes.php b/lib/ClassTypes.php index 60f18d95..a7c2cd4f 100644 --- a/lib/ClassTypes.php +++ b/lib/ClassTypes.php @@ -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 index 00000000..5aa3846b --- /dev/null +++ b/test/bdd/api/reverse/addressdetails.feature @@ -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 |