-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Add 'withinPolygon' to ParseQuery #3290
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
Comments
I am also in need of this feature. Unfortunately AFAIK, previous pull requests have been denied citing the need to be compatible with the Parse.com legacy database, which runs an older, non-geojson compatible version of MongoDB. |
I believe this is actually a good feature to have. Recently, the Parse Server Evolution repo was created to manage better feature requests. @tarekskr do you think you can add a PR there with the proposal? Fork the repo, add a new proposal according to this template to the proposals folder, and create the PR. |
@natanrolnik I am not that familiar with github, but if you guys could do it please feel free to copy the request and make it your own. Many thanks! |
Alright, I've created a pull request with the feature request. Please let me know if I missed something. |
Hey @madsb does this add support for |
@otymartin At the moment it's just a feature request, but I agree completely! Hopefully someone with the right coding chops will take a stab at it. Well, at least as soon as the pull request is merged (hint-hint, @flovilmart ;) ). |
@madsb |
Added in Parse Server 2.5.0. Closes via #3866 |
In addition to the existing 'ParseQuery.withinGeoBox', we also need a 'withinPolygon' function so that we could search inside a polygon of GeoPoints.
AFAIK, this is supported by MongoDB, but I have no idea how to implement it myself in Parse :)
Here is the MongoDB documentation: https://docs.mongodb.com/manual/reference/operator/query/polygon/#op._S_polygon
The text was updated successfully, but these errors were encountered: