From: Sarah Hoffmann Date: Sat, 19 Aug 2017 07:46:56 +0000 (+0200) Subject: enable details view for artificial postcodes X-Git-Tag: v3.1.0~88^2~3 X-Git-Url: https://git.openstreetmap.org/nominatim.git/commitdiff_plain/f4a00eba26fff15305dc73da159cb81d1ac2a6df enable details view for artificial postcodes --- diff --git a/website/details.php b/website/details.php index 5b52e2cc..4d7c1efb 100755 --- a/website/details.php +++ b/website/details.php @@ -73,6 +73,9 @@ if (CONST_Use_US_Tiger_Data) { $iParentPlaceID = chksql($oDB->getOne('SELECT parent_place_id FROM location_property_osmline WHERE place_id = '.$iPlaceID)); if ($iParentPlaceID) $iPlaceID = $iParentPlaceID; +// artificial postcodes +$iParentPlaceID = chksql($oDB->getOne('SELECT parent_place_id FROM location_postcode WHERE place_id = '.$iPlaceID)); +if ($iParentPlaceID) $iPlaceID = $iParentPlaceID; if (CONST_Use_Aux_Location_data) { $iParentPlaceID = chksql($oDB->getOne('SELECT parent_place_id FROM location_property_aux WHERE place_id = '.$iPlaceID));