app/services/geo_query.rb
# pull other needed data attributes from results
pull other needed data attributes from results
pull other needed data attributes from results
def result_component(component)
    rc = @result.address_components_of_type(component)
    return nil if rc.blank?
    rc.try(:first)['long_name']
  end
def result_component ( component ) rc = @result . address_components_of_type ( component ) return nil if rc . blank? rc . try ( :first ) [ 'long_name' ] end
pull other needed data attributes from results
pull other needed data attributes from results
component
<not_specific>