Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function poisInBuffer (area, poi, time, speed) {
let distance = (time / 3600) * speed;
let bufferedArea = buffer(area, distance, 'kilometers');
var result = within(poi, featureCollection([bufferedArea]));
return result;
}
export function villagesInRegion (area, villages) {
let result = within(villages, featureCollection([area]));
return result;
}