Skip to content

Commit

Permalink
Merge pull request #230 from lavr/master
Browse files Browse the repository at this point in the history
Use https protocol for Yandex Geocoder. Fixes #229
  • Loading branch information
DenisCarriere committed Feb 5, 2017
2 parents 2896331 + 7d2872b commit f0c7cd5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion geocoder/yandex.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Yandex(Base):
method = 'geocode'

def __init__(self, location, **kwargs):
self.url = 'http://geocode-maps.yandex.ru/1.x/'
self.url = 'https://geocode-maps.yandex.ru/1.x/'
self.location = location
self.params = {
'geocode': location,
Expand Down
2 changes: 1 addition & 1 deletion geocoder/yandex_reverse.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class YandexReverse(Yandex, Base):
method = 'reverse'

def __init__(self, location, **kwargs):
self.url = 'http://geocode-maps.yandex.ru/1.x/'
self.url = 'https://geocode-maps.yandex.ru/1.x/'
location = location
x, y = Location(location).xy
self.location = u'{}, {}'.format(x, y)
Expand Down

0 comments on commit f0c7cd5

Please sign in to comment.