X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/0fb8eade136ea03e7853aca0795ca69833c33661..cc141bf1a551368101474cfac02a231719224710:/lib-php/Geocode.php diff --git a/lib-php/Geocode.php b/lib-php/Geocode.php index 0f76a9c4..43d10368 100644 --- a/lib-php/Geocode.php +++ b/lib-php/Geocode.php @@ -506,13 +506,6 @@ class Geocode userError('Query string is not UTF-8 encoded.'); } - // Conflicts between US state abreviations and various words for 'the' in different languages - if (isset($this->aLangPrefOrder['name:en'])) { - $sQuery = preg_replace('/(^|,)\s*il\s*(,|$)/i', '\1illinois\2', $sQuery); - $sQuery = preg_replace('/(^|,)\s*al\s*(,|$)/i', '\1alabama\2', $sQuery); - $sQuery = preg_replace('/(^|,)\s*la\s*(,|$)/i', '\1louisiana\2', $sQuery); - } - // Do we have anything that looks like a lat/lon pair? $sQuery = $oCtx->setNearPointFromQuery($sQuery);