diff options
author | Jochen Topf <jochen@topf.org> | 2013-01-06 13:27:23 +0100 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2013-01-06 13:27:23 +0100 |
commit | 3dc24ee78f73094f44ed89a044c85d7c4338ff97 (patch) | |
tree | 4b276413beef950e549c22c54ba25680ae1b5a45 /examples | |
parent | 94cf8b600b3b59e3bad066b6a4b7bf010007e84e (diff) | |
download | taginfo-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-x | examples/tapi | 4 |
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 = [] |