X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/21adb3740e878c8f6b4df26f8f7409f98d1f0fec..2cc0fa341bf8a576422ee022e1a4cba842627621:/lib/Geocode.php diff --git a/lib/Geocode.php b/lib/Geocode.php index d3cc793f..7f1d3733 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -483,8 +483,7 @@ $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']))