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

@turf/midpoint

Package Overview
Dependencies
Maintainers
6
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/midpoint

turf midpoint module

  • 6.2.0-alpha.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
854K
increased by31.46%
Maintainers
6
Weekly downloads
 
Created

What is @turf/midpoint?

@turf/midpoint is a module within the Turf.js library that provides geospatial analysis tools. Specifically, @turf/midpoint calculates the geographical midpoint between two points. This can be useful in various applications such as mapping, navigation, and geographic data analysis.

What are @turf/midpoint's main functionalities?

Calculate Midpoint

This feature calculates the geographical midpoint between two points. The code sample demonstrates how to use the @turf/midpoint module to find the midpoint between two given coordinates.

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

const point1 = turf.point([-75.343, 39.984]);
const point2 = turf.point([-75.534, 39.123]);
const midpoint = turf.midpoint(point1, point2);

console.log(midpoint);

Other packages similar to @turf/midpoint

Keywords

FAQs

Package last updated on 10 Dec 2020

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