From ac1b40eacb28eee7f817a79bde2fbd947191b756 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Wu=CC=88rbach?= <johannes.wuerbach@googlemail.com> Date: Fri, 24 Aug 2012 20:28:31 +0200 Subject: [PATCH] Removed state from city. Fixes #283 --- lib/geocoder/results/nominatim.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/geocoder/results/nominatim.rb b/lib/geocoder/results/nominatim.rb index 05e51805..59ef0467 100644 --- a/lib/geocoder/results/nominatim.rb +++ b/lib/geocoder/results/nominatim.rb @@ -25,7 +25,7 @@ module Geocoder::Result end def city - %w[city town village hamlet state].each do |key| + %w[city town village hamlet].each do |key| return @data['address'][key] if @data['address'].key?(key) end return nil -- GitLab