5513504555
- Delete auto-comments when edit carte and description
11 lines
308 B
Ruby
11 lines
308 B
Ruby
module Carto
|
|
# this class take a string in input and return a point
|
|
class Geocodeur
|
|
def self.convert_adresse_to_point(address)
|
|
Carto::Bano::PointRetriever.new(address).point
|
|
rescue RestClient::Exception, JSON::ParserError => e
|
|
Rails.logger.error e.message
|
|
nil
|
|
end
|
|
end
|
|
end
|