app/services/geo_query.rb
# Copied from Geocoder Source
# Added extra keys
Copied from Geocoder Source
Added extra keys
Copied from Geocoder Source Added extra keys
def location_iq_city
    %w(city town village hamlet suburb city_district neighbourhood).each do |key|
      return @result.data['address'][key] if @result.data['address'].key?(key)
    end
    return nil
  end
def location_iq_city %w( city town village hamlet suburb city_district neighbourhood ) . each do | key | return @result . data [ 'address' ] [ key ] if @result . data [ 'address' ] . key? ( key ) end return nil end
Copied from Geocoder Source
Added extra keys
Copied from Geocoder Source Added extra keys