From 45bcb116700503776f97c59a44ee820b64deef94 Mon Sep 17 00:00:00 2001 From: Alexey Kharybin Date: Thu, 25 Jun 2015 15:08:15 +0300 Subject: [PATCH] Fix geocoder API url --- source/Yandex/Geo/Api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}