- Модуль: location
- Путь к файлу: ~/bitrix/modules/location/lib/source/osm/api/api.php
- Класс: BitrixLocationSourceOsmApiApi
- Вызов: Api::details
public function details(array $options): array
{
$client = $this->makeHttpClient();
$body = $client->get(
$this->buildUrl(
'location',
'details',
$this->wrapQueryData(
[
'osmtype' => $options['osm_type'] ?? '',
'osmid' => $options['osm_id'] ?? '',
'format' => 'json',
'addressdetails' => isset($options['addressdetails']) ? (int)$options['addressdetails'] : 0,
'linkedplaces' => isset($options['linkedplaces']) ? (int)$options['linkedplaces'] : 0,
'hierarchy' => isset($options['hierarchy']) ? (int)$options['hierarchy'] : 0,
'accept-language' => $options['accept-language'] ?? '',
]
)
)
);
return $this->getResponse($client, $body);
}