]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api_controller.rb
Support getting a way, and all the segments and nodes it depends on, via /way/:id...
[rails.git] / app / controllers / api_controller.rb
index 3cebdcf5319bc6ff6c002ce4b769809f1934a703..8091aa67af06e67489a1c55f9394faaf168769ea 100644 (file)
@@ -68,7 +68,7 @@ class ApiController < ApplicationController
     # get missing nodes if there are any
     nodes += Node.find(missing_nodes) if missing_nodes.length > 0
 
-    doc = OSM::API.get_xml_doc
+    doc = OSM::API.new.get_xml_doc
 
     # get ways
     # find which ways are needed