module Geocoder::Calculations

def to_radians(*args)


converts each value and returns array.
If an array (or multiple arguments) is passed,
Convert degrees to radians.
#
def to_radians(*args)
  args = args.first if args.first.is_a?(Array)
  if args.size == 1
    args.first * (Math::PI / 180)
  else
    args.map{ |i| to_radians(i) }
  end
end