retire
retire copied to clipboard
Bounding box not working for full east to west
I am using the following filter:
indexes :lat_lng, type: 'geo_point', lat_lon: true
filter :geo_bounding_box, lat_lng: {
top_left: "#{bbox[:n]}, #{bbox[:w]}",
bottom_right: "#{bbox[:s]}, #{bbox[:e]}",
type: :indexed
}
and if north is 90, south is -90, east is 180 and west is -180 then it doesn't return any results.
However, if I then change east to be 179.9 and west to be -179.9 then it brings back results.
Is there an issue here or is something I'm doing at fault?
I can't just ignore the filter if it is 180 -> -180 because that would assume north and south were 90 and -90.
Thanks
Col