demarches-normaliennes/app/lib/api_adresse/point_adapter.rb
2018-10-16 09:33:16 +02:00

15 lines
266 B
Ruby

class ApiAdresse::PointAdapter < ApiAdresse::Adapter
def initialize(address)
super(address, 1, nil)
end
def geocode
handle_result
end
private
def process_features
RGeo::GeoJSON.decode(features[0]['geometry'], json_parser: :json)
end
end