summaryrefslogtreecommitdiff
path: root/taginfo-config-example.json
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2011-10-10 20:38:34 +0200
committerJochen Topf <jochen@topf.org>2011-10-10 20:38:34 +0200
commit37218f57f1b53a5f0b1a3d4e4444e8d80b5d667c (patch)
treecbd6b41d6696e7e7a2df009c6470df152b4b3dfe /taginfo-config-example.json
parent82c320568448206a65816cb602dfa8f8a3399c1e (diff)
downloadtaginfo-37218f57f1b53a5f0b1a3d4e4444e8d80b5d667c.tar
taginfo-37218f57f1b53a5f0b1a3d4e4444e8d80b5d667c.tar.gz
Add taginfo-config.rb to read config from command line.
I added bin/taginfo-config.rb to easily access the config file from the command line. This is now used in sources/db/update.sh and sources/update_all.sh. This, again, reduces the places in the distribution where things needed to be changed for each instance.
Diffstat (limited to 'taginfo-config-example.json')
-rw-r--r--taginfo-config-example.json46
1 files changed, 46 insertions, 0 deletions
diff --git a/taginfo-config-example.json b/taginfo-config-example.json
new file mode 100644
index 0000000..ff2f0a2
--- /dev/null
+++ b/taginfo-config-example.json
@@ -0,0 +1,46 @@
+// This is an example of a Taginfo config file.
+// Copy it to the directory above and name it 'taginfo-config.json', then change your local settings.
+{
+ // You probably want to change all these.
+ "instance": {
+ // Used in the title of all HTML pages.
+ "name": "Test Taginfo",
+ // Description that appears if you click on the instance icon in the upper left.
+ "description": "This is a Taginfo test instance. To change this text or the icon above change your <tt>taginfo-config.json</tt>.",
+ // URL path to instance icon in the upper left.
+ "icon": "/img/instance.png"
+ },
+ "tagcloud": {
+ "number_of_tags": 200
+ },
+ // For the geodistribution map. If you change this, you also have to change the C++ code in tagstats.
+ "geodistribution": {
+ "width": 720,
+ "height": 360,
+ "background_image": "/img/worldp.png"
+ },
+ "xapi": {
+ // URL prefix for the XAPI/JOSM links on the key and tag pages.
+ // "url_prefix": "http://www.informationfreeway.org/api/0.6/"
+ "url_prefix": "http://open.mapquestapi.com/xapi/api/0.6/"
+ },
+ "opensearch": {
+ // For the OpenSearchDescription. You have to change at least the shortname and the contact for your instance.
+ "shortname": "Taginfo Test Instance",
+ "contact": "somebody@example.com",
+ "description": "Find metadata about OpenStreetMap tags",
+ "tags": "osm openstreetmap tag tags taginfo"
+ },
+ "sources": {
+ // These sources will be downloaded from http://taginfo.openstreetmap.org/download/
+ // Note that this will NOT work for the "db" source! Well, you can download it,
+ // but it will fail later, because the database is changed by the master.sql
+ // scripts.
+ "download": "josm potlatch merkaartor wiki",
+ // These sources will be created from the actual sources.
+ "create": "db",
+ "db": {
+ "planetfile": "/osm/planet/var/current-planet.osm.pbf"
+ }
+ }
+}