From 37218f57f1b53a5f0b1a3d4e4444e8d80b5d667c Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Mon, 10 Oct 2011 20:38:34 +0200 Subject: 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. --- taginfo-config-example.json | 46 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 taginfo-config-example.json (limited to 'taginfo-config-example.json') 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 taginfo-config.json.", + // 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" + } + } +} -- cgit v1.2.3