mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-23 13:44:36 +03:00
ignore admin_level = 15 in geocodejson output
Level 15 is an artifical value.
This commit is contained in:
parent
01d5ecb86b
commit
05bef92f0f
@ -546,13 +546,15 @@ class PlaceLookup
|
||||
{
|
||||
$aAddressLines = $this->getAddressDetails(
|
||||
$iPlaceID,
|
||||
false,
|
||||
true,
|
||||
$sHousenumber === null ? -1 : $sHousenumber
|
||||
);
|
||||
|
||||
$aAddress = array();
|
||||
foreach ($aAddressLines as $aLine) {
|
||||
if (isset($aLine['admin_level'])) {
|
||||
if (isset($aLine['admin_level'])
|
||||
&& $aLine['admin_level'] < 15
|
||||
&& !isset($aAddress['level'.$aLine['admin_level']])) {
|
||||
$aAddress['level'.$aLine['admin_level']] = $aLine['localname'];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user