search for: range_x_right

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

2006 Sep 20
3
Range searches some times they work, some times not...
...data is with 8 metres of the origin... thanks in advance. clare if their_outcode && their_outcode.size > 0 temp_hwz = HwzPostcode.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}...