demarches-normaliennes/app/lib/api_adresse/geocodeur.rb
2018-10-15 23:31:23 +02:00

10 lines
256 B
Ruby

module ApiAdresse
class Geocodeur
def self.convert_adresse_to_point(address)
ApiAdresse::PointRetriever.new(address).point
rescue RestClient::Exception, JSON::ParserError => e
Rails.logger.error(e.message)
nil
end
end
end