include Geocode
begin
# input is an postal address
result = geocode ARGV.to_s
# debugging output
puts "#{result[:address1]}, #{result[:city]},
#{result[:state]}, #{result[:zipcode]}"
puts "#{result[:latitude]}, #{result[:longitude]}"
# convert decimal values to DMS
puts dec2dms(result[:latitude])
puts dec2dms(result[:longitude])
end
begin
# input is an postal address
result = geocode ARGV.to_s
# debugging output
puts "#{result[:address1]}, #{result[:city]},
#{result[:state]}, #{result[:zipcode]}"
puts "#{result[:latitude]}, #{result[:longitude]}"
# convert decimal values to DMS
puts dec2dms(result[:latitude])
puts dec2dms(result[:longitude])
end