3 class WaysController < ApiController
6 before_action :set_request_formats
9 # returns all the ways which are currently using the node given in the
10 # :node_id parameter. note that this used to return deleted ways as well, but
11 # this seemed not to be the expected behaviour, so it was removed.
13 way_ids = WayNode.where(:node_id => params[:node_id]).collect { |ws| ws.id[0] }.uniq
15 @ways = Way.where(:id => way_ids, :visible => true)
18 respond_to do |format|