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

get-distance-between-points

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-distance-between-points

Distance between two points of coordinates in Google Maps - Earth

latest
Source
npmnpm
Version
1.2.0
Version published
Maintainers
1
Created
Source

get-distance-between-points

Distance between two points of coordinates in Google Maps - Earth

This module has no dependencies ;)

Build Status

Installation

$ npm install get-distance-between-points --save

Usage

var getDistanceBetweenPoints = require('get-distance-between-points');
var distanceInMeters = getDistanceBetweenPoints.getDistanceBetweenPoints(
    -12.119012, -77.029235, // Lat, Long of point A
    -12.102870, -77.026983 // Lat, Long of point B
);

// Outputs: Distance in Meters:  1813.5586276614192
console.log("Distance in Meters: ", distanceInMeters);

// Outputs: Distance in Kilometers:  1.8135586276614193
console.log("Distance in Kilometers: ", (distanceInMeters * 0.001));

Keywords

distance

FAQs

Package last updated on 25 Feb 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