Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    geo-distance-jspublic

    Build Status devDependency Status Monthly downloads License

    GeoDistance.js

    A Node.js module which takes 2 Lat+Lng (Geolocation) points and returns the distance between the two points in Meters

    Installation

    npm install geo-distance-js


    Function getDistance(toLat, toLng, fromLat, fromLng);

    Add the module as a variable in your .js file

    var dist = require('geo-distance-js');

    Run the function with

    dist.getDistance(toLat, toLng, fromLat, fromLng);

    install

    npm i geo-distance-js

    Downloadslast 7 days

    35

    version

    1.0.0

    license

    MIT

    repository

    github.com

    last publish

    collaborators

    • avatar