     res.json(points)
   )
 
+# get measurements for signal strength with GET /measurement/signal
 router.get '/signal', (req, res, next) ->
   points = []
   if req.query.nelat is undefined or req.query.swlat is undefined or req.query.nelng is undefined or req.query.swlng is undefined

      else
        res.end()
    

router.get '/wifi', (req, res, next) ->
  points = []
  if req.query.nelat is undefined or req.query.swlat is undefined or req.query.nelng is undefined or req.query.swlng is undefined

module.exports = (app) ->
  app.use '/measurement/', router

# create a new measurement instance on POST /measurement/
router.post '/', (req,res,next) ->
  # find a corresponding close measurement
  Measurement.find
    location:
      $geoNear: 
