]> git.openstreetmap.org Git - nominatim.git/commitdiff
remove New York hack
authorSarah Hoffmann <lonvia@denofr.de>
Wed, 30 Apr 2014 19:11:23 +0000 (21:11 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Wed, 30 Apr 2014 19:11:23 +0000 (21:11 +0200)
Seems to work okay with current boundaries.

lib/Geocode.php

index d3cc793ff5f48f91e4aca2dfc2583a50e2cac697..7f1d373319afcfe717a2b233e497630f34e61eb0 100644 (file)
                                $sCountryCodesSQL = join(',', array_map('addQuotes', $this->aCountryCodes));
                        }
 
-                       // Hack to make it handle "new york, ny" (and variants) correctly
-                       $sQuery = str_ireplace(array('New York, ny','new york, new york', 'New York ny','new york new york'), 'new york city, ny', $this->sQuery);
+                       $sQuery = $this->sQuery;
 
                        // Conflicts between US state abreviations and various words for 'the' in different languages
                        if (isset($this->aLangPrefOrder['name:en']))