Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

turf-buffer

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

turf-buffer

turf buffer module

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7.1K
decreased by-47.61%
Maintainers
1
Weekly downloads
 
Created
Source

turf-buffer

Build Status

Buffers a point, linestring, or polygon Feature/FeatureCollection to a given radius. Units supported are miles, kilometers, and degrees.

###Install

npm install turf-buffer

###Parameters

namedescription
featureA Feature or FeatureCollection of any type
distanceDistance to draw the buffer
unit'miles' or 'kilometers'

###Usage

buffer(feature, distance, unit)

###Example

var buffer = require('turf-buffer')
var point = require('turf-point')

var pt = point(14.616599, -90.548630)
var unit = 'miles'

var buffered = buffer(pt, 10, unit)

console.log(buffered)

Keywords

FAQs

Package last updated on 19 Jun 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc