Socket
Socket
Sign inDemoInstall

turf-point

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

turf-point

turf point module


Version published
Weekly downloads
16K
decreased by-3.78%
Maintainers
1
Weekly downloads
 
Created
Source

turf-point

Build Status

Creates a geojson Point Feature based on an x and y coordinate. Properties can be added optionally.

###Install

npm install turf-point

###Parameters

namedescription
xx coordinate
yy coordinate

###Usage

point(x, y)

###Example

var point = require('turf-point')

var pt1 = point(-75.343, 39.984)
var pt2 = point(-75.343, 39.984, {name: 'point 1', population: 5000})
console.log(pt1)
console.log(pt2)

###CLI

npm install turf-point -g
turf-point 2 1
turf-point --lat 1 --lon 2
turf-point --latitude 1 --longitude 2
turf-point -x 2 -y 1

Keywords

FAQs

Package last updated on 04 Aug 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