<commit_before># haversine-distance

[![build status](https://secure.travis-ci.org/dcousens/haversine-distance.png)](http://travis-ci.org/dcousens/haversine-distance)
[![Version](http://img.shields.io/npm/v/haversine-distance.svg)](https://www.npmjs.org/package/haversine-distance)

[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)

Haversine formula in Javascript.  In meters.  Nothing more.


## Example

``` javascript
var haversine = require('haversine-distance')

var a = { latitude: 37.8136, longitude: 144.9631 }
var b = { latitude: 33.8650, longitude: 151.2094 }

// 714504.18 (in meters)
console.log(haversine(a, b))
```


## License

This library is free and open-source software released under the MIT license.<commit_msg>README: clarify lat,lng works too<commit_after># haversine-distance

[![build status](https://secure.travis-ci.org/dcousens/haversine-distance.png)](http://travis-ci.org/dcousens/haversine-distance)
[![Version](http://img.shields.io/npm/v/haversine-distance.svg)](https://www.npmjs.org/package/haversine-distance)

[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)

Haversine formula in Javascript.  In meters.  Nothing more.


## Example

``` javascript
var haversine = require('haversine-distance')

var a = { latitude: 37.8136, longitude: 144.9631 }
var b = { latitude: 33.8650, longitude: 151.2094 }

// 714504.18 (in meters)
console.log(haversine(a, b))
```

`lat`, `lng` variants will also work:

``` javascript
var haversine = require('haversine-distance')

var a = { lat: 37.8136, lng: 144.9631 }
var b = { lat: 33.8650, lng: 151.2094 }

// 714504.18 (in meters)
console.log(haversine(a, b))
```


## License

This library is free and open-source software released under the MIT license.
{'fraction_non_alphanumeric': 0.169263836646964, 'fraction_numerical': 0.054809242342826435, 'mean_word_length': 4.6941896024464835, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5052576', 'n_tokens_mistral': 770, 'n_tokens_neox': 658, 'n_words': 128}