summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2013-01-06 13:27:23 +0100
committerJochen Topf <jochen@topf.org>2013-01-06 13:27:23 +0100
commit3dc24ee78f73094f44ed89a044c85d7c4338ff97 (patch)
tree4b276413beef950e549c22c54ba25680ae1b5a45 /examples
parent94cf8b600b3b59e3bad066b6a4b7bf010007e84e (diff)
downloadtaginfo-3dc24ee78f73094f44ed89a044c85d7c4338ff97.tar
taginfo-3dc24ee78f73094f44ed89a044c85d7c4338ff97.tar.gz
Moved many API calls over to new version 4.
Old versions are marked as deprecated. All new API calls are documented.
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/tapi4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/tapi b/examples/tapi
index cb37c03..4495a73 100755
--- a/examples/tapi
+++ b/examples/tapi
@@ -12,7 +12,7 @@
# You can set the following environment variables (default in brackets):
# TAGINFO_API_SERVER [taginfo.openstreetmap.org]
# TAGINFO_API_PORT [80]
-# TAGINFO_API_VERSION [2]
+# TAGINFO_API_VERSION [4]
#
require 'rubygems'
@@ -23,7 +23,7 @@ require 'json'
API_SERVER = ENV['TAGINFO_API_SERVER'] || 'taginfo.openstreetmap.org'
API_PORT = ENV['TAGINFO_API_PORT'] || 80
-API_VERSION = ENV['TAGINFO_API_VERSION'] || '2'
+API_VERSION = ENV['TAGINFO_API_VERSION'] || '4'
def api_call(path, params)
query = []