How to use the @turf/within function in @turf/within

To help you get started, we’ve selected a few @turf/within examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github WorldBank-Transport / ram-backend / __converter / app / calculate-eta / utils.js View on Github external
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;
}
github WorldBank-Transport / ram-backend / __converter / app / calculate-eta / utils.js View on Github external
export function villagesInRegion (area, villages) {
  let result = within(villages, featureCollection([area]));
  return result;
}

@turf/within

turf within module

MIT
Latest version published 7 years ago

Package Health Score

67 / 100
Full package analysis

Popular @turf/within functions