Skip to content
Snippets Groups Projects
Commit 30e28e9b authored by Arsalan Ahmed Tahir's avatar Arsalan Ahmed Tahir
Browse files

Added neighborhood method to google result.

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