
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
dist-two-points
Advanced tools
A JavaScript utility for finding the distance between two points given latitude and longitude
A JavaScript utility for finding the distance between two points given latitude and longitude.
$ npm install --save dist-two-points
or
$ yarn add dist-two-points
import distanceBetweenPoints from 'dist-two-points';
const dist = distanceBetweenPoints(37.4219752, -122.084076, 37.3348136, -122.0091032);
Param | Type | Example |
---|---|---|
lat1 | Number | 37.4219752 |
long1 | Number | -122.084076 |
lat2 | Number | 37.3348136 |
long2 | Number | -122.0091032 |
The function will return a Number value in meters.
Create an Issue if there is not already one created. Open up a Pull Request against master
with your fix branch.
$ npm install
$ npm test
$ npm run build
FAQs
A JavaScript utility for finding the distance between two points given latitude and longitude
We found that dist-two-points demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.