testing/Garmin Log renaming 2.0.d.rb
# Note that there are other geo services available as of 2013 in Ruby. For example http://www.rubygeocoder.com.
Note that there are other geo services available as of 2013 in Ruby.
Note that there are other geo services available as of 2013 in Ruby .
def loc(arr)
  location = "If you're seeing this sentence, Geocoder isn't set up. Needs to be put in two places"
  places_nearby = Geonames::WebService.find_nearby_place_name arr[0], arr[1]
  puts "arr[0]: #{arr[0]}. arr[1]: #{arr[1]}"
  puts "places_nearby: #{places_nearby}"
end
def loc ( arr ) location = "If you're seeing this sentence, Geocoder isn't set up. Needs to be put in two places" places_nearby = Geonames :: WebService . find_nearby_place_name arr [ 0 ] , arr [ 1 ] puts "arr[0]: #{arr[0]}. arr[1]: #{arr[1]}" puts "places_nearby: #{places_nearby}" end
Note that there are other geo services available as of 2013 in Ruby.
Note that there are other geo services available as of 2013 in Ruby .
# puts "\nCoordinates input #{arr[0]}, #{arr[1]}" # location = Geocoder.search("#{arr[0]}, #{arr[1]}") # puts "location from Geocoder: #{location}" # if geocoder loaded. If gets good info, maybe change # puts "Error probably due to different geonames gem" # puts "{places_nearby.first.name: #{places_nearby.first.name}, #{places_nearby.first.country_name}"   # return "#{places_nearby.first.name}, #{places_nearby.first.country_name}"
arr
<not_specific>