function api_request_progress(status) {
var loading_el = document.getElementById('loading');
if (!loading_el) return; // might not be on page yet
function api_request_progress(status) {
var loading_el = document.getElementById('loading');
if (!loading_el) return; // might not be on page yet
dom_element.innerHTML = html;
fetch_content_cache[url] = html;
});
}
function generate_nominatim_api_url(endpoint_name, params) {
dom_element.innerHTML = html;
fetch_content_cache[url] = html;
});
}
function generate_nominatim_api_url(endpoint_name, params) {
+ Object.keys(clean_up_parameters(params)).map((k) => {
return encodeURIComponent(k) + '=' + encodeURIComponent(params[k]);
}).join('&');
+ Object.keys(clean_up_parameters(params)).map((k) => {
return encodeURIComponent(k) + '=' + encodeURIComponent(params[k]);
}).join('&');