X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/2237cab7481a180928c13be61bad618e0d010318..ba6b3f355a6cfcb2f3d2c9a0d912ec6249264988:/app/controllers/amf_controller.rb?ds=sidebyside diff --git a/app/controllers/amf_controller.rb b/app/controllers/amf_controller.rb index 3cb93c1ae..8132b5311 100644 --- a/app/controllers/amf_controller.rb +++ b/app/controllers/amf_controller.rb @@ -610,8 +610,7 @@ def makeway(args) current_nodes AS cn2, current_segments AS cs LEFT OUTER JOIN current_way_segments ON segment_id=cs.id - WHERE (cn1.longitude BETWEEN #{xs1} AND #{xs2}) - AND (cn1.latitude BETWEEN #{ys1} AND #{ys2}) + WHERE #{OSM.sql_for_area(ys1,xs1,ys2,xs2,"cn1.")} AND segment_id IS NULL AND cs.visible=1 AND cn1.id=node_a AND cn1.visible=1