scripts/node/calculateETA.js
//helper function to retrieve pois of type 'poi' within a buffer around region

helper function to retrieve pois of type 'poi' within a buffer around region
helper function to retrieve pois of type ' poi ' within a buffer around region
function poisInBuffer(feature,time,speed,poi) {
	var length = (time/3600)*speed;
	var geom = featurecollection([buffer(feature,length,'kilometers')]);
	var result = within(poi,geom);
	return result;
}
function poisInBuffer ( feature , time , speed , poi ) { var length = ( time / 3600 ) * speed ; var geom = featurecollection ( [ buffer ( feature , length , 'kilometers' ) ] ) ; var result = within ( poi , geom ) ; return result ; }
helper function to retrieve pois of type 'poi' within a buffer around region
helper function to retrieve pois of type ' poi ' within a buffer around region