+function generate_nominatim_endpoint_url(endpoint_name) {
+ var conf_endpoint = Nominatim_Config.Nominatim_API_Endpoint;
+
+ if (typeof conf_endpoint === 'function') {
+ return conf_endpoint(endpoint_name);
+ }
+
+ if (!endpoint_name) return conf_endpoint;
+
+ return conf_endpoint + endpoint_name + '.php';
+}
+