2018-10-15 17:26:06 +02:00
|
|
|
class ApiAdresse::Geocodeur
|
|
|
|
def self.convert_adresse_to_point(address)
|
2018-10-15 18:08:13 +02:00
|
|
|
ApiAdresse::PointAdapter.new(address).point
|
2018-10-15 17:26:06 +02:00
|
|
|
rescue RestClient::Exception, JSON::ParserError => e
|
|
|
|
Rails.logger.error(e.message)
|
|
|
|
nil
|
2015-08-10 11:05:06 +02:00
|
|
|
end
|
|
|
|
end
|