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

@turf/center-mean

Package Overview
Dependencies
Maintainers
9
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/center-mean

turf center-mean module

  • 7.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
801K
increased by32.2%
Maintainers
9
Weekly downloads
 
Created

What is @turf/center-mean?

@turf/center-mean is a module from the Turf.js library that calculates the mean center of a set of geographical points. This is useful for finding the average location of a group of points, which can be applied in various geospatial analyses.

What are @turf/center-mean's main functionalities?

Calculate Mean Center

This feature calculates the mean center of a set of points. The code sample creates a collection of points and then calculates their mean center using the `turf.centerMean` function.

const turf = require('@turf/turf');

const points = turf.featureCollection([
  turf.point([0, 0]),
  turf.point([10, 10]),
  turf.point([20, 20])
]);

const meanCenter = turf.centerMean(points);
console.log(meanCenter);

Other packages similar to @turf/center-mean

Keywords

FAQs

Package last updated on 09 Aug 2024

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