]> git.openstreetmap.org Git - nominatim.git/commitdiff
Remove hack that changes the class/type of cities
authorSarah Hoffmann <lonvia@denofr.de>
Sun, 9 Feb 2020 11:14:32 +0000 (12:14 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Sun, 9 Feb 2020 11:14:32 +0000 (12:14 +0100)
This interferes badly with the details view.

Fixes #1668.

lib/Geocode.php

index 7a9f5ad4f2799531c726712dd302612c99dc455f..f45b2caae3349fa256a114dd61a501e0c2778bba 100644 (file)
@@ -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);