Skip to content

Commit 387a9ac

Browse files
authored
Update DaData.php
1 parent 3768b4b commit 387a9ac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/DaData.php

+3
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ private function executeQuery(string $address, int $limit, string $locale = null
190190
if (!empty($addressInfo->area_with_type)) {
191191
$builder->addAdminLevel(2, $addressInfo->area_with_type, $addressInfo->area_fias_id);
192192
}
193+
if (!empty($addressInfo->settlement_with_type)) {
194+
$builder->addAdminLevel(3, $addressInfo->settlement_with_type, $addressInfo->settlement_fias_id);
195+
}
193196
$builder->setCountry($addressInfo->country ?? null);
194197
$builder->setCountryCode($addressInfo->country_iso_code ?? null);
195198

0 commit comments

Comments
 (0)