module GeoCalc

Latitude/longitude spherical geodesy formulae & scripts © Chris Veness 2002-2010

- www.movable-type.co.uk/scripts/latlong.html

Public Class Methods

apis() click to toggle source
# File lib/geo_calc/calc.rb, line 17
def self.apis
  [:Bearing, :Destination, :Distance, :Intersection, :Midpoint, :Rhumb]
end
included(base) click to toggle source
# File lib/geo_calc/calc.rb, line 11
def self.included base
  apis.each do |api|           
    base.send :include, "GeoCalc::#{api}".constantize
  end
end