title: combine geoNear query with another query for a value
body: <p>I have an api for geo data realised with node.js mongodb and mongoose.
  I want to query my data with two criteria.</p>
  
  <p>First i use geoNear to get all locations in a given radius which works fine.
  Second i want to filter the locations further by its type.</p>
  
  <p>This is my schema:</p>
  
  <pre><code>var GeoLocationSchema   = new Schema({
      name: String,
      type: String,
      loc: {
          type: {
              type: String,
              required: true,
              enum: ["Point", "LineString", "Polygon"],
              default: "Point"
          },
          coordinates: [Number]
      }
  });
  // ensure the geo location uses 2dsphere
  GeoLocationSchema.index({ loc : "2dsphere" });
  </code></pre>
  
  <p>and this is my geoNear query:</p>
  
  <pre><code>router.route("/locations/near/:lng/:lat/:type/:max")
  
      // get locations near the get params
      .get(function(req, res) {
          // setup geoJson for query
          var geoJson             = {};
          geoJson.type            = "Point";
          geoJson.coordinates     = [parseFloat(req.params.lng), parseFloat(req.params.lat)];
  
          // setup options for query
          var options             = {};
          options.spherical       = true;
          options.maxDistance     = parseInt(req.params.max)/6370000;
  
          // query db with mongoose geoNear wrapper
          GeoLocation.geoNear(geoJson, options, function (err, results, stats) {
              if (err)
                  res.send(err);
              res.json(results);
          });
      });
  </code></pre>
  
  <p>Is it somehow possible to combine the geoNear query with a query for a specific type of location or can i filter the result somehow?</p>
  
  <p>Thanks in advance.</p>