Displaying 1 result from an estimated 1 matches for "range_x_left".
2006 Sep 20
3
Range searches some times they work, some times not...
...y:[0 9]").total_hits
=> 167
thats telling me that all the test 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:[#{r...