From 207efe700f126ca0a6b714a6f9a6885b6ab11b70 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Wed, 22 Apr 2020 09:08:33 +0200 Subject: [PATCH] highway:construction should appear as 'road' in the address list Fixes #1763. --- lib/ClassTypes.php | 2 +- test/bdd/api/reverse/addressdetails.feature | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 test/bdd/api/reverse/addressdetails.feature 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 | -- 2.39.5