Skip to content
Snippets Groups Projects
Commit 70829e69 authored by Ahmed Magdy's avatar Ahmed Magdy
Browse files

Fix here mapping for state and add state_code

parent e087dc27
No related branches found
No related tags found
No related merge requests found
......@@ -26,8 +26,15 @@ module Geocoder::Result
address_data['HouseNumber']
end
def state_code
address_data['State']
end
def state
address_data['County']
fail unless d = address_data['AdditionalData']
if v = d.find{|ad| ad['key']=='StateName'}
return v['value']
end
end
def province
......
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