From 2805118a6047fa9e5814d44003d993507222fb90 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Tue, 11 Sep 2012 17:58:23 +0100 Subject: [PATCH] Add CC BY-SA 2.0 copyright/attribution/license attributes to --- config/example.application.yml | 3 +++ lib/osm.rb | 3 +++ 2 files changed, 6 insertions(+) diff --git a/config/example.application.yml b/config/example.application.yml index cf18ab557..bc66923fe 100644 --- a/config/example.application.yml +++ b/config/example.application.yml @@ -3,6 +3,9 @@ defaults: &defaults server_url: "www.openstreetmap.org" # The generator generator: "OpenStreetMap server" + copyright_owner: "OpenStreetMap and contributors" + attribution_url: "http://www.openstreetmap.org/copyright" + license_url: "http://creativecommons.org/licenses/by-sa/2.0/" # Sender addresses for emails email_from: "OpenStreetMap " email_return_path: "bounces@openstreetmap.org" diff --git a/lib/osm.rb b/lib/osm.rb index 8902e6c9e..3da9671c1 100644 --- a/lib/osm.rb +++ b/lib/osm.rb @@ -460,6 +460,9 @@ module OSM root = XML::Node.new 'osm' root['version'] = API_VERSION.to_s root['generator'] = GENERATOR + root['copyright'] = COPYRIGHT_OWNER + root['attribution'] = ATTRIBUTION_URL + root['license'] = LICENSE_URL doc.root = root return doc end -- 2.39.5