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

Merge pull request #420 from azlantaher88/master

Added neighborhood method to Geocoder::Result::Google class
parents ea6ec796 30e28e9b
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,12 @@ module Geocoder::Result
formatted_address
end
def neighborhood
if neighborhood = address_components_of_type(:neighborhood).first
neighborhood['long_name']
end
end
def city
fields = [:locality, :sublocality,
:administrative_area_level_3,
......
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