diff --git a/lib/ingestors/event_ingestion.rb b/lib/ingestors/event_ingestion.rb index ab66f1e21..d56163a3b 100644 --- a/lib/ingestors/event_ingestion.rb +++ b/lib/ingestors/event_ingestion.rb @@ -95,23 +95,7 @@ def convert_event_types(input) end def convert_location(input) - # puts "convert_location(#{input})" - result = nil - - # search for locations - locations = Geocoder.search(input) - if !locations.nil? and locations.size > 0 && (!locations.first.nil? and !locations.first.address.nil?) - # puts "address: #{locations.first.address.inspect}" - result = locations.first.address - end - - # check substring - if result.nil? or result['country'].nil? - stripped = strip_first_part input - result = convert_location(stripped.lstrip) if !stripped.nil? and stripped.size > 0 - end - - result + input end def strip_first_part(input)