Skip to content

Commit a750a0e

Browse files
authored
Fixes bing geojson fetch by postal code
postalCode was given countryRegion parameter
1 parent 39b9999 commit a750a0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

geocoder/bing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def _build_params(self, location, provider_key, **kwargs):
152152
'adminDistrict': kwargs.get('adminDistrict'),
153153
'countryRegion': kwargs.get('countryRegion'),
154154
'locality': kwargs.get('locality'),
155-
'postalCode': kwargs.get('countryRegion'),
155+
'postalCode': kwargs.get('postalCode'),
156156
'addressLine': kwargs.get('addressLine', location),
157157
'o': 'json',
158158
'inclnb': 1,

0 commit comments

Comments
 (0)