Skip to content
Snippets Groups Projects
Commit 8af7a9a9 authored by Alex Reisner's avatar Alex Reisner
Browse files

Merge pull request #711 from kayakyakr/patch-1

Update so opencagedata will return coordinates.
parents 08eecd96 76e5547a
No related branches found
No related tags found
No related merge requests found
...@@ -64,7 +64,7 @@ module Geocoder::Result ...@@ -64,7 +64,7 @@ module Geocoder::Result
end end
def coordinates def coordinates
[@data['lat'].to_f, @data['lon'].to_f] [@data['geometry']['lat'].to_f, @data['geometry']['lng'].to_f]
end end
def self.response_attributes def self.response_attributes
%w[boundingbox license %w[boundingbox license
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment