Skip to content

Commit

Permalink
Merge pull request #5 from m89/fix-geocoder-url
Browse files Browse the repository at this point in the history
Fix geocoder API url
  • Loading branch information
Dmitry Kuznetsov committed Jun 25, 2015
2 parents 9be8dc1 + 45bcb11 commit aefceb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/Yandex/Geo/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -223,4 +223,4 @@ public function setToken($token)
$this->_filters['key'] = (string)$token;
return $this;
}
}
}

0 comments on commit aefceb4

Please sign in to comment.