From a750a0e389344f9ec656a94dcc376612a0e92ee1 Mon Sep 17 00:00:00 2001 From: Benjamin Date: Thu, 2 Jul 2020 14:31:44 -0400 Subject: [PATCH] Fixes bing geojson fetch by postal code postalCode was given countryRegion parameter --- geocoder/bing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geocoder/bing.py b/geocoder/bing.py index 6f7406db..68666692 100644 --- a/geocoder/bing.py +++ b/geocoder/bing.py @@ -152,7 +152,7 @@ def _build_params(self, location, provider_key, **kwargs): 'adminDistrict': kwargs.get('adminDistrict'), 'countryRegion': kwargs.get('countryRegion'), 'locality': kwargs.get('locality'), - 'postalCode': kwargs.get('countryRegion'), + 'postalCode': kwargs.get('postalCode'), 'addressLine': kwargs.get('addressLine', location), 'o': 'json', 'inclnb': 1,