New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

afar

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

afar

Calculate the distance (km) between two latitude and longitude points.

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

Afar

Calculate the distance (km) between two latitude and longitude points.

Install

npm i afar

Usage

var afar = require('afar')

// SF lat/lon
var lat1 = '37.7749';
var lon1 = '122.4194';

// LA lat/lon
var lat2 = '34.0522';
var lon2 = '118.2437';

afar(lat1, lon1, lat2, lon2)
// => 559.1205770615537 

Keywords

node

FAQs

Package last updated on 08 Jul 2016

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