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:
@@ -10,7 +10,7 @@ $sOutputFormat = 'html';
|
||||
|
||||
$oDB =& getDB();
|
||||
|
||||
$sSQL = "select placex.place_id, calculated_country_code as country_code,";
|
||||
$sSQL = "select placex.place_id, country_code,";
|
||||
$sSQL .= " name->'name' as name, i.* from placex, import_polygon_delete i";
|
||||
$sSQL .= " where placex.osm_id = i.osm_id and placex.osm_type = i.osm_type";
|
||||
$sSQL .= " and placex.class = i.class and placex.type = i.type";
|
||||
|
||||
@@ -83,7 +83,7 @@ $hLog = logStart($oDB, 'details', $_SERVER['QUERY_STRING'], $aLangPrefOrder);
|
||||
|
||||
// Get the details for this point
|
||||
$sSQL = "SELECT place_id, osm_type, osm_id, class, type, name, admin_level,";
|
||||
$sSQL .= " housenumber, street, isin, postcode, calculated_country_code AS country_code,";
|
||||
$sSQL .= " housenumber, street, postcode, country_code,";
|
||||
$sSQL .= " importance, wikipedia,";
|
||||
$sSQL .= " to_char(indexed_date, 'YYYY-MM-DD HH24:MI') AS indexed_date,";
|
||||
$sSQL .= " parent_place_id, ";
|
||||
|
||||
Reference in New Issue
Block a user