diff --git a/source/Yandex/Geo/Api.php b/source/Yandex/Geo/Api.php index a06e87d..899988e 100644 --- a/source/Yandex/Geo/Api.php +++ b/source/Yandex/Geo/Api.php @@ -58,7 +58,7 @@ public function __construct($version = null) public function load() { - $apiUrl = sprintf('http://geocode-maps.yandex.ru/%s/?%s', $this->_version, http_build_query($this->_filters)); + $apiUrl = sprintf('https://geocode-maps.yandex.ru/%s/?%s', $this->_version, http_build_query($this->_filters)); $curl = curl_init($apiUrl); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_HTTPGET, 1); @@ -223,4 +223,4 @@ public function setToken($token) $this->_filters['key'] = (string)$token; return $this; } -} \ No newline at end of file +}