You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add near and maxDistance parameter to getBoxes request. lets you sear… (#492)
* add near and maxDistance parameter to getBoxes request. lets you search for senseBoxes around a location
* fix linting
Co-authored-by: Umut Tas <[email protected]>
* @apiParam {Boolean="true","false"} [classify=false] if specified, the api will classify the boxes accordingly to their last measurements.
201
201
* @apiParam {Boolean="true","false"} [minimal=false] if specified, the api will only return a minimal set of box metadata consisting of [_id, updatedAt, currentLocation, exposure, name] for a fast response.
202
202
* @apiParam {Boolean="true","false"} [full=false] if true the API will return populated lastMeasurements (use this with caution for now, expensive on the database)
203
+
* @apiParam {String} [near] A comma separated coordinate, if specified, the api will only return senseBoxes within maxDistance (in m) of this location
204
+
* @apiParam {Number} [maxDistance=1000] the amount of meters around the near Parameter that the api will search for senseBoxes
return{name: 'location',dataType: ['location'],paramValidatorAndParser: retrieveLocationParameter};// dataType array ['location'] is needed for setting the userparam correctly
0 commit comments