-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add GeoBoundingBox filter #84
Add GeoBoundingBox filter #84
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implemented as far as I could get with my knowledge.
Do you want me to take over from here or do you want to give it a shot with my feedback? You are almost there!
5f10424
to
dc88b89
Compare
fc86f25
to
bcf1922
Compare
@Toflar ready for review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! You have implemented almost all that's needed, great!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one more test I think would be very helpful.
This looks very cool - how do you like it? :)
'_geoBoundingBox(location, 1.00 2.00, 2.00, 3.00)', | ||
"Col 31: Error: Expected ',', got '2.00'", | ||
]; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one more test for invalid coordinates would be great :)
Oh and some docs on how to use the filter https://github.com/loupe-php/loupe/blob/main/docs/searching.md#filter |
9150db5
to
df140d9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some docs improvements and then I think this is ready to be merged. Awesome work, Alex!
Co-authored-by: Yanick Witschi <[email protected]>
Thanks @alexander-schranz! This is very cool! I'm going to clean up some stuff and then release it as v0.7 :) |
@Toflar Awesome. Thank you! |
Why Loupe already supports filtering by a GeoDistance. Which support we already merged also int SEAL. It would also be nice to filter by a bounding box (rectangle). That is mostly used for things when a user navigates around a map and have a specific area shown.
See fore more information: #83
fixes #83
Implemented as far as I could get with my knowledge.