# 39dotyt/node-geographiclib

### Subversion checkout URL

You can clone with
or
.
GeographicLib (http://geographiclib.sourceforge.net/) node.js port
JavaScript
`Release 1.45.`
latest commit 7d1e13a7a0
cffk authored
 Failed to load latest commit information. src Sep 28, 2015 test Sep 28, 2015 .gitignore May 20, 2013 .npmignore Sep 13, 2015 LICENSE.txt README.md Sep 30, 2015 geographiclib.js geographiclib.min.js package.json Sep 30, 2015

# Geodesic routines from GeographicLib

This library is a JavaScript implementation of the geodesic routines from GeographicLib. This solves the direct and inverse geodesic problems for an ellipsoid of revolution.

## Installation

`\$ npm install geographiclib`

## Usage

In node, do

`var GeographicLib = require("geographiclib");`

## Documentation

Full documentation is provided at http://geographiclib.sourceforge.net/1.45/js/.

## Examples

```var GeographicLib = require("geographiclib"),
geod = GeographicLib.Geodesic.WGS84, r;

// Find the distance from Wellington, NZ (41.32S, 174.81E) to
// Salamanca, Spain (40.96N, 5.50W)...
r = geod.Inverse(-41.32, 174.81, 40.96, -5.50);
console.log("The distance is " + r.s12.toFixed(3) + " m.");
// This prints "The distance is 19959679.267 m."

// Find the point 20000 km SW of Perth, Australia (32.06S, 115.74E)...
r = geod.Direct(-32.06, 115.74, 225, 20000e3);
console.log("The position is (" +
r.lat2.toFixed(8) + ", " + r.lon2.toFixed(8) + ").");
// This prints "The position is (32.11195529, -63.95925278)."```

## Authors

Something went wrong with that request. Please try again.