Skip to content
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

$within operator #25

Open
stefanocudini opened this issue Sep 16, 2015 · 6 comments
Open

$within operator #25

stefanocudini opened this issue Sep 16, 2015 · 6 comments

Comments

@stefanocudini
Copy link

you have planned to implement this spatial operator?

@stefanocudini
Copy link
Author

There would be this temporary solution:
suggested in this issue: meteor/meteor#1473
That could be added inside the logic of method $within

Markers.find({
  "address.location.0": {
    $gt: xMin,
    $lt: xMax
  },
  "address.location.1": {
    $gt: yMin,
    $lt: yMax
  }
});

@grassick
Copy link
Member

Hello! I don't have plans to implement it as I don't need it for my application (I use $geoIntersects). I'd welcome a pull request, however.

@stefanocudini
Copy link
Author

ok! I'll try to do some code

@stefanocudini
Copy link
Author

@grassick $geoIntersects ?? How can I use it for within operation? :o

@grassick
Copy link
Member

Hmm.. I'm not sure you can. Code might be better...

@stefanocudini
Copy link
Author

may be conveerting bbox in a polygon and check a point inside the polygon using $geoIntersects?
could be a good indea?

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

No branches or pull requests

2 participants