require 'geocoder/results/base'

module Geocoder
  module Result
    class Test < Base

      %w[latitude longitude city state state_code province
      province_code postal_code country country_code address
      street_address street_number].each do |attr|
        define_method(attr) do
          @data[attr.to_s] || @data[attr.to_sym]
        end
      end
    end
  end
end

require 'geocoder/results/base'

module Geocoder
  module Result
    class Test < Base

      %w[latitude longitude city state state_code province
      province_code postal_code country country_code address
      street_address street_number route].each do |attr|
        define_method(attr) do
          @data[attr.to_s] || @data[attr.to_sym]
        end
      end
    end
  end
end

Add route to Test base
Add route to Test base
