mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-10 12:04:06 +00:00
highway:construction should appear as 'road' in the address list
Fixes #1763.
This commit is contained in:
@@ -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),
|
||||||
|
|||||||
10
test/bdd/api/reverse/addressdetails.feature
Normal file
10
test/bdd/api/reverse/addressdetails.feature
Normal 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 |
|
||||||
Reference in New Issue
Block a user