scripts/node/calculateETA.js
//helper function to retrieve the villages within the given region

helper function to retrieve the villages within the given region
helper function to retrieve the villages within the given region
function villagesInRegion(region,villages) {
	var fc = featurecollection([region]);
	var result = within(villages,fc);
	return result;
}
function villagesInRegion ( region , villages ) { var fc = featurecollection ( [ region ] ) ; var result = within ( villages , fc ) ; return result ; }
helper function to retrieve the villages within the given region
helper function to retrieve the villages within the given region