From 97684ad75b7d776eb69c37f966fe567d9610d3a2 Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Sun, 18 May 2014 17:15:46 +0200 Subject: Fixed Overpass Turbo link --- taginfo-config-example.json | 1 - web/lib/utils.rb | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/taginfo-config-example.json b/taginfo-config-example.json index dac6bc8..0c5dda2 100644 --- a/taginfo-config-example.json +++ b/taginfo-config-example.json @@ -41,7 +41,6 @@ // will be called, if less the Wizard will be used with autorun and autozoom "max_auto": 100, "url_prefix": "http://overpass-turbo.eu/?", - "wizard_url_prefix": "http://overpass-turbo.eu/master?", // set this to "global" or "in " where is a country name or other region found by Nominatim "wizard_area": "global" }, diff --git a/web/lib/utils.rb b/web/lib/utils.rb index fc0d395..104d9d6 100644 --- a/web/lib/utils.rb +++ b/web/lib/utils.rb @@ -108,7 +108,7 @@ def turbo_link(count, filter, key, value=nil) if filter != 'all' filter_condition = ' and type:' + filter.chop end - url = TaginfoConfig.get('turbo.wizard_url_prefix', 'http://overpass-turbo.eu/master?') + 'w=' + Rack::Utils::escape('"' + key + '"=' + value + filter_condition.to_s + ' ' + TaginfoConfig.get('turbo.wizard_area', 'global')) + '&R' + url = TaginfoConfig.get('turbo.url_prefix', 'http://overpass-turbo.eu/?') + 'w=' + Rack::Utils::escape('"' + key + '"=' + value + filter_condition.to_s + ' ' + TaginfoConfig.get('turbo.wizard_area', 'global')) + '&R' else template = 'key'; parameters = { :key => key } -- cgit v1.2.3