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

Suburb is in the address hash.

Thanks github.com/johanneswuerbach.
parent 426ca2ee
No related branches found
No related tags found
No related merge requests found
......@@ -61,13 +61,17 @@ module Geocoder::Result
@data['address']['country_code']
end
def suburb
@data['address']['suburb']
end
def coordinates
[@data['lat'].to_f, @data['lon'].to_f]
end
def self.response_attributes
%w[place_id osm_type osm_id boundingbox license
polygonpoints display_name class type stadium suburb]
%w[place_id osm_type osm_id boundingbox license
polygonpoints display_name class type stadium]
end
response_attributes.each do |a|
......
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