           coordinates: [req.body.lat, req.body.lng]
       )
     else
+      # replace the measurement
       console.log('Replacing available measurement entry.')
       measurement = measurements[0]
       measurement.signalDBm = req.body.signalDBm

      return
    for point in data
      points.push([point.location.coordinates[0], point.location.coordinates[1],  parseFloat(point.signalDBm) / 31.0])
    res.json(points)
      else
        res.end()
    
# get measurements for wifi access points with GET /measurement/wifi
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
