5 character patch to only output duplicated nodes once in a way/full call
authorThomas Wood <grand.edgemaster@gmail.com>
Tue, 29 Sep 2009 02:55:35 +0000 (02:55 +0000)
committerThomas Wood <grand.edgemaster@gmail.com>
Tue, 29 Sep 2009 02:55:35 +0000 (02:55 +0000)
Unit tests not run - problems on this system
Fixes #2327

app/controllers/way_controller.rb

index 1f301e9..f2cda21 100644 (file)
@@ -67,7 +67,7 @@ class WayController < ApplicationController
       user_display_name_cache = {}
 
       doc = OSM::API.new.get_xml_doc
-      way.nodes.each do |node|
+      way.nodes.uniq.each do |node|
         if node.visible
           doc.root << node.to_xml_node(changeset_cache, user_display_name_cache)
         end