pre-Git files/Garmin Log renaming.e.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)
  places_nearby = Geonames::WebService.find_nearby_place_name arr[0], arr[1]
  puts "56. places_nearby: #{places_nearby}. "
  puts "57. places_nearby.first.name: #{places_nearby.first.name}, places_nearby.first.country_name: #{places_nearby.first.country_name}"
  return "#{places_nearby.first.name}, #{places_nearby.first.country_name}"
end
def loc ( arr ) places_nearby = Geonames :: WebService . find_nearby_place_name arr [ 0 ] , arr [ 1 ] puts "56. places_nearby: #{places_nearby}. " puts "57. places_nearby.first.name: #{places_nearby.first.name}, places_nearby.first.country_name: #{places_nearby.first.country_name}" return "#{places_nearby.first.name}, #{places_nearby.first.country_name}" 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 .
# location = "If you're seeing this sentence, Geocoder isn't set up. Needs to be put in two places" # used with Geocoder which isn't being used with the current version # puts "54. #{arr}" # puts "Coordinates 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
arr
<not_specific>