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

Add support for $geoIntersects query #1

Open Starefossen opened 9 years ago

Starefossen commented 9 years ago

URL param:

?intersects=lon,lat

Should give this query:

​geojson: {
  $geoIntersects: {
    $geometry: {
      type: "Point" , coordinates: [ lat, lon ]
    }
  }
}