8 lines
228 B
Ruby
8 lines
228 B
Ruby
class ApiAdresse::Geocodeur
|
|
def self.convert_adresse_to_point(address)
|
|
ApiAdresse::PointAdapter.new(address).point
|
|
rescue RestClient::Exception, JSON::ParserError => e
|
|
Rails.logger.error(e.message)
|
|
nil
|
|
end
|
|
end
|