search for: range_y_bottom

Displaying 1 result from an estimated 1 matches for "range_y_bottom".

2006 Sep 20
3
Range searches some times they work, some times not...
...tcode.find(:first, :conditions => [''outcode = ?'',their_outcode]) range_x_left = temp_hwz.x - (postcode_distance.to_f*1.60934 * 1000) range_x_right = temp_hwz.x + (postcode_distance.to_f*1.60934 * 1000) range_y_top = temp_hwz.y + (postcode_distance.to_f*1.60934 * 1000) range_y_bottom = temp_hwz.y - (postcode_distance.to_f*1.60934 * 1000) query += " AND x:[#{range_x_left.to_i} #{range_x_right.to_i}] AND y:[#{range_y_bottom.to_i} #{range_y_top.to_i}]" end -- Posted via http://www.ruby-forum.com/.