From: Sarah Hoffmann Date: Sun, 9 Feb 2020 11:14:32 +0000 (+0100) Subject: Remove hack that changes the class/type of cities X-Git-Tag: v3.5.0~88 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/8531339b4eb3dc8244551abf64ffe217868a7167 Remove hack that changes the class/type of cities This interferes badly with the details view. Fixes #1668. --- diff --git a/lib/Geocode.php b/lib/Geocode.php index 7a9f5ad4..f45b2caa 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -907,12 +907,6 @@ class Geocode $aResult = array_merge($aResult, $aOutlineResult); } - if ($aResult['extra_place'] == 'city') { - $aResult['class'] = 'place'; - $aResult['type'] = 'city'; - $aResult['rank_search'] = 16; - } - // Is there an icon set for this type of result? $aClassInfo = ClassTypes\getInfo($aResult);