Turistforeningen / node-mongo-querystring

Query builder for accepting URL query parameters into your MongoDB queries. Safe and feature rich. Supports most of MongoDB's query operators such as $eq, $gt, $lt, $ne, $in, $nin, $exists, $regex, geospatial queries such as bbox and near, as well as your own custom query business logic!
MIT License
100 stars 31 forks source link

Support for querying within a polygon #74

Open willmcclellan opened 6 years ago

willmcclellan commented 6 years ago

Adds support for querying within a polygon. String format is as follows:

?within=1,1,2,2,2,3,1,2,1,1

Thanks to @MadisonBlake for the logic, I just integrated it into the module 👍

Todo

Starefossen commented 6 years ago

Wow! That is great @willmcclellan!!! 🎉 Thanks for contributing this back!