Adding a restriction to prevent more than 2000 nodes to be added to any way. Tests...
[rails.git] / app / controllers / api_controller.rb
index c337038a0f4a7827372ef4cf8608a4423f4bce10..fa14cd79eb4f23c905762988a17e871b71cfb28e 100644 (file)
@@ -281,6 +281,9 @@ class ApiController < ApplicationController
     tracepoints = XML::Node.new 'tracepoints'
     tracepoints['per_page'] = APP_CONFIG['tracepoints_per_page'].to_s
     api << tracepoints
+    waynodes = XML::Node.new 'waynodes'
+    waynodes['maximum'] = APP_CONFIG['max_number_of_way_nodes'].to_s
+    api << waynodes
     
     doc.root << api