Skip to content

Additional query constraint: "wherePolygonContains" #777

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

Closed
3 tasks done
Paul0Cesar opened this issue Jul 18, 2022 · 1 comment · Fixed by #778
Closed
3 tasks done

Additional query constraint: "wherePolygonContains" #777

Paul0Cesar opened this issue Jul 18, 2022 · 1 comment · Fixed by #778
Labels
type:feature New feature or improvement of existing feature

Comments

@Paul0Cesar
Copy link
Contributor

Paul0Cesar commented Jul 18, 2022

New Feature / Enhancement Checklist

Current Limitation

Not have a method for adding Polygon constraint, to check if one geoPoint exist in Polygon.

Similar exist in Android - wherePolygonContains

Feature / Enhancement Description

Create a new constraint to check if Polygon contains the geopoint

Example Use Case

1- Get a real location of customer

2 - You need to check which city the customer is in

3 - In you database have Cities Polygons , and you can check what is the city of customer with this constraint

Alternatives / Workarounds

  • We can use in QueryBuilder the field : queries for add Polygon constraint
QueryBuilder query = QueryBuilder<ParseObject>(ParseObject('SCHEMA'));
    query.queries.add(MapEntry<String, dynamic>('SINGLE_QUERY',
            '"ColumnName":{
                "$geoIntersects":{
                    "$point":{
                        "__type":"GeoPoint",
                        "latitude":$lat,
                        "longitude":$lng
                    }
                }
            }'
        ));
@parse-github-assistant
Copy link

parse-github-assistant bot commented Jul 18, 2022

Thanks for opening this issue!

  • 🎉 We are excited about your ideas for improvement!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature New feature or improvement of existing feature
Projects
None yet
2 participants