Add some spacing
This commit is contained in:
parent
76cf9ab746
commit
32b27ba111
1 changed files with 2 additions and 0 deletions
|
@ -11,10 +11,12 @@ class ApiAdresse::PointRetriever
|
||||||
|
|
||||||
def convert_api_result_to_point
|
def convert_api_result_to_point
|
||||||
result = JSON.parse(ApiAdresse::API.call(@address))
|
result = JSON.parse(ApiAdresse::API.call(@address))
|
||||||
|
|
||||||
if result['features'].empty?
|
if result['features'].empty?
|
||||||
Rails.logger.error "unable to find location for address #{@address}"
|
Rails.logger.error "unable to find location for address #{@address}"
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
|
|
||||||
RGeo::GeoJSON.decode(result['features'][0]['geometry'], json_parser: :json)
|
RGeo::GeoJSON.decode(result['features'][0]['geometry'], json_parser: :json)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue