New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dist-two-points

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dist-two-points

A JavaScript utility for finding the distance between two points given latitude and longitude

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

dist-two-points

npm CircleCI (all branches) License: MIT

A JavaScript utility for finding the distance between two points given latitude and longitude.

Install

$ npm install --save dist-two-points

or

$ yarn add dist-two-points

Usage

import distanceBetweenPoints from 'dist-two-points';

const dist = distanceBetweenPoints(37.4219752, -122.084076, 37.3348136, -122.0091032);
ParamTypeExample
lat1Number37.4219752
long1Number-122.084076
lat2Number37.3348136
long2Number-122.0091032

The function will return a Number value in meters.

Contributing

Create an Issue if there is not already one created. Open up a Pull Request against master with your fix branch.

Install Dependencies

$ npm install

Run Tests

$ npm test

Run a babel transpile

$ npm run build

Keywords

FAQs

Package last updated on 31 Oct 2018

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