From 9cc34eea45e6ef2ea96c2d3c91a7a277efd81fed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=BB=D0=B0=D0=B4=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=BE=D0=BD=D0=B5=D0=B2?= Date: Mon, 14 Dec 2020 21:50:15 +0300 Subject: [PATCH 1/2] yandex fixed --- geocoder/yandex.py | 3 ++- geocoder/yandex_reverse.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/geocoder/yandex.py b/geocoder/yandex.py index c55e15fd..1e0f0359 100644 --- a/geocoder/yandex.py +++ b/geocoder/yandex.py @@ -150,9 +150,10 @@ def _build_params(self, location, provider_key, **kwargs): return { 'geocode': location, 'lang': kwargs.get('lang', 'en-US'), - 'kind': kwargs.get('kind', ''), + 'kind': kwargs.get('kind', None), 'format': 'json', 'results': kwargs.get('maxRows', 1), + 'apikey': provider_key } def _adapt_results(self, json_response): diff --git a/geocoder/yandex_reverse.py b/geocoder/yandex_reverse.py index ad7cd0aa..b9535bfe 100644 --- a/geocoder/yandex_reverse.py +++ b/geocoder/yandex_reverse.py @@ -56,9 +56,10 @@ def _build_params(self, location, provider_key, **kwargs): return { 'geocode': self.location, 'lang': kwargs.get('lang', 'en-US'), - 'kind': kwargs.get('kind', ''), + 'kind': kwargs.get('kind', None), 'format': 'json', 'results': kwargs.get('maxRows', 1), + 'apikey': provider_key } From 6557ebf02dd5d84fe0f84d6c7a54f396ece7d88c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=BB=D0=B0=D0=B4=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=BE=D0=BD=D0=B5=D0=B2?= Date: Mon, 14 Dec 2020 21:58:19 +0300 Subject: [PATCH 2/2] version increment --- geocoder/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geocoder/__init__.py b/geocoder/__init__.py index cef6d70d..6731a6a9 100755 --- a/geocoder/__init__.py +++ b/geocoder/__init__.py @@ -28,7 +28,7 @@ __title__ = 'geocoder' __author__ = 'Denis Carriere' __author_email__ = 'carriere.denis@gmail.com' -__version__ = '1.38.1' +__version__ = '1.38.2' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2013-2016 Denis Carriere'