[fix] convert byte query to string in osm engine - fixes #1220

This commit is contained in:
Adam Tauber 2019-12-21 20:56:38 +01:00
parent e5305f886c
commit f8713512be

View File

@ -24,7 +24,7 @@ result_base_url = 'https://openstreetmap.org/{osm_type}/{osm_id}'
# do search-request
def request(query, params):
params['url'] = base_url + search_string.format(query=query)
params['url'] = base_url + search_string.format(query=query.decode('utf-8'))
return params