Skip to content
This repository

Description

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

[As of version 1.0.0 only the Haversine formula is supported. More to be added!]

Installation

gem install gis-distance

Synopsis

require 'gis/distance'

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

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

License

Artistic 2.0

Authors

  • Daniel Berger
  • Ardith Falkner
Something went wrong with that request. Please try again.