mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
introduce address column for place tables
The column is a hstore containing the full OSM tag with key and value.
This commit is contained in:
@@ -118,7 +118,7 @@ class ReverseGeocode
|
||||
$iMaxRank = 26;
|
||||
}
|
||||
|
||||
$sSQL = 'select place_id,parent_place_id,rank_search,calculated_country_code';
|
||||
$sSQL = 'select place_id,parent_place_id,rank_search,country_code';
|
||||
$sSQL .= ' FROM placex';
|
||||
$sSQL .= ' WHERE ST_DWithin('.$sPointSQL.', geometry, '.$fSearchDiam.')';
|
||||
$sSQL .= ' and rank_search != 28 and rank_search >= '.$iMaxRank;
|
||||
@@ -135,7 +135,7 @@ class ReverseGeocode
|
||||
);
|
||||
$iPlaceID = $aPlace['place_id'];
|
||||
$iParentPlaceID = $aPlace['parent_place_id'];
|
||||
$bIsInUnitedStates = ($aPlace['calculated_country_code'] == 'us');
|
||||
$bIsInUnitedStates = ($aPlace['country_code'] == 'us');
|
||||
}
|
||||
|
||||
// If a house was found make sure there isn't an interpolation line
|
||||
|
||||
Reference in New Issue
Block a user