mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-15 15:34:07 +00:00
adapted the coding style with phpcs
This commit is contained in:
@@ -151,7 +151,6 @@ class ReverseGeocode
|
|||||||
|
|
||||||
// for POI or street level
|
// for POI or street level
|
||||||
if ($iMaxRank >= 26) {
|
if ($iMaxRank >= 26) {
|
||||||
|
|
||||||
$sSQL = 'select place_id,parent_place_id,rank_address,country_code,';
|
$sSQL = 'select place_id,parent_place_id,rank_address,country_code,';
|
||||||
$sSQL .= 'CASE WHEN ST_GeometryType(geometry) in (\'ST_Polygon\',\'ST_MultiPolygon\') THEN ST_distance('.$sPointSQL.', centroid)';
|
$sSQL .= 'CASE WHEN ST_GeometryType(geometry) in (\'ST_Polygon\',\'ST_MultiPolygon\') THEN ST_distance('.$sPointSQL.', centroid)';
|
||||||
$sSQL .= ' ELSE ST_distance('.$sPointSQL.', geometry) ';
|
$sSQL .= ' ELSE ST_distance('.$sPointSQL.', geometry) ';
|
||||||
@@ -226,5 +225,4 @@ class ReverseGeocode
|
|||||||
}
|
}
|
||||||
return $oResult;
|
return $oResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user