Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
genericconverter.php
1
<?php
2
3
namespace
Bitrix\Location\Source\Osm\Converters
;
4
12
final
class
GenericConverter
extends
BaseConverter
13
{
15
private
const
LEVEL_1_ADMIN_LEVEL = 4;
16
20
protected
function
getAdminLevel1
(): ?array
21
{
22
foreach
($this->addressComponents as $addressComponent)
23
{
24
if
($this->
isAdministrativeBoundary
($addressComponent)
25
&& $addressComponent[
'admin_level'
] === static::LEVEL_1_ADMIN_LEVEL
26
)
27
{
28
return
$addressComponent;
29
}
30
}
31
32
return
null
;
33
}
34
}
Bitrix\Location\Source\Osm\Converters\BaseConverter
Definition
baseconverter.php:27
Bitrix\Location\Source\Osm\Converters\BaseConverter\isAdministrativeBoundary
isAdministrativeBoundary($addressComponent)
Definition
baseconverter.php:593
Bitrix\Location\Source\Osm\Converters\GenericConverter
Definition
genericconverter.php:13
Bitrix\Location\Source\Osm\Converters\GenericConverter\getAdminLevel1
getAdminLevel1()
Definition
genericconverter.php:20
Bitrix\Location\Source\Osm\Converters
Definition
baseconverter.php:3
modules
location
lib
source
osm
converters
genericconverter.php
Создано системой
1.10.0