Method: Weather#location_to_coordinates

Defined in:
lib/cogibara/operators/weather.rb

#location_to_coordinates(location) ⇒ Object

def translate(message)

in_language = @bing.detect message
@bing.translate message, :from => in_language, :to => "en"

end



15
16
17
# File 'lib/cogibara/operators/weather.rb', line 15

def location_to_coordinates(location)
  Geocoder.coordinates(location)
end