Skip to content

Commit 9e367f2

Browse files
author
Alfiya Tarasenko
committed
Fix API type parameter
1 parent b4d74b6 commit 9e367f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/reverse-geocoding/reverse_geocode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def reverse_geocode(api_key, lat, lon, country_filter, result_type, output_forma
2424
if country_filter:
2525
params['filter'] = 'countrycode:' + country_filter
2626
if result_type:
27-
params['result_type'] = result_type
27+
params['type'] = result_type
2828
try:
2929
response = requests.get(GEOAPIFY_API_URL, params=params)
3030
if response.status_code == 200:

0 commit comments

Comments
 (0)