How to use @turf/within - 2 common examples

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

65 / 100
Full package analysis

Popular @turf/within functions