lib/jt-rails-address.rb in jt-rails-address-1.0.0 vs lib/jt-rails-address.rb in jt-rails-address-1.0.1
- old
+ new
@@ -43,10 +43,10 @@
return nil if !json['results'] || json['results'].size == 0
place = json['results'][0]
- data = {}
+ data = HashWithIndifferentAccess.new
data['lat'] = place['geometry']['location']['lat']
data['lng'] = place['geometry']['location']['lng']
data['formatted_address'] = place['formatted_address']
\ No newline at end of file