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

Merge branch 'master' of git://github.com/tipugin/geocoder into tipugin-master

parents 1c0ad6d6 66dd2cd6
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,11 @@ module Geocoder::Result
end
def city
address_details['Locality']['LocalityName']
if state.empty?
address_details['Locality']['LocalityName']
else
address_details['AdministrativeArea']['Locality']['LocalityName']
end
end
def country
......@@ -24,7 +28,11 @@ module Geocoder::Result
end
def state
""
if address_details['AdministrativeArea']
address_details['AdministrativeArea']['AdministrativeAreaName']
else
""
end
end
def state_code
......
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