summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2014-05-18 17:15:46 +0200
committerJochen Topf <jochen@topf.org>2014-05-18 17:15:46 +0200
commit97684ad75b7d776eb69c37f966fe567d9610d3a2 (patch)
treea35de8acdaa8b4c456a79312d9ede9633c25a4b6
parent52afb48b85da361f1d7031f1c76d33e238a50d05 (diff)
downloadtaginfo-97684ad75b7d776eb69c37f966fe567d9610d3a2.tar
taginfo-97684ad75b7d776eb69c37f966fe567d9610d3a2.tar.gz
Fixed Overpass Turbo link
-rw-r--r--taginfo-config-example.json1
-rw-r--r--web/lib/utils.rb2
2 files changed, 1 insertions, 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 <area>" where <area> 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 }