Sha256: f0eb240458a3b8d53dd9d775cad2acbac9fd69fe5f25c40a131b7f0d5591cb84

Contents?: true

Size: 737 Bytes

Versions: 1

Compression:

Stored size: 737 Bytes

Contents

## Description
The gis-distance library allows you to calculate geographic distance between
two points using the formula of your choice.

## Installation
`gem install gis-distance`

## Synopsis
```ruby
require 'gis/distance' # or 'gis-distance'

# New York to Los Angeles
gis = GIS::Distance.new(40.47, 73.58, 34.3, 118.15)

# Set the formula of your choice
gis.formula = 'cosines'
gis.formula = 'haversine'

p gis.distance    # Kilometers
p gis.distance.mi # Miles 
```

## Available Formulas
* haversine (https://en.wikipedia.org/wiki/Haversine_formula)
* cosine (https://en.wikipedia.org/wiki/Law_of_cosines)

## See Also
http://en.wikipedia.org/wiki/Earth_radius

## License
Artistic-2.0

## Authors
* Daniel Berger
* Ardith Falkner

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gis-distance-1.1.0 README.md