highway:construction should appear as 'road' in the address list

Fixes #1763.
This commit is contained in:
Sarah Hoffmann
2020-04-22 09:08:33 +02:00
parent 5469d02d03
commit 207efe700f
2 changed files with 11 additions and 1 deletions

View File

@@ -268,7 +268,7 @@ function getList()
'tourism:caravan_site' => array('label' => 'Caravan Site', 'frequency' => 183, 'icon' => 'accommodation_caravan_park'), '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:bus_station' => array('label' => 'Bus Station', 'frequency' => 181, 'icon' => 'transport_bus_station'),
'amenity:kindergarten' => array('label' => 'Kindergarten', 'frequency' => 179), '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:atm' => array('label' => 'Atm', 'frequency' => 172, 'icon' => 'money_atm2'),
'amenity:emergency_phone' => array('label' => 'Emergency Phone', 'frequency' => 164), 'amenity:emergency_phone' => array('label' => 'Emergency Phone', 'frequency' => 164),
'waterway:lock' => array('label' => 'Lock', 'frequency' => 146), 'waterway:lock' => array('label' => 'Lock', 'frequency' => 146),

View File

@@ -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 |