Skip to content
This repository has been archived by the owner on Jun 30, 2018. It is now read-only.

Bounding box not working for full east to west #910

Open
amnesia7 opened this issue Nov 14, 2013 · 0 comments
Open

Bounding box not working for full east to west #910

amnesia7 opened this issue Nov 14, 2013 · 0 comments

Comments

@amnesia7
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant