From 3e573c3cc80b2b18bd98a28e3d48424027b09ae2 Mon Sep 17 00:00:00 2001 From: Bess Sadler Date: Fri, 31 Jul 2009 22:22:03 -0400 Subject: [PATCH] remove renamed file --- delocator.rb | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 delocator.rb diff --git a/delocator.rb b/delocator.rb deleted file mode 100644 index 7673002..0000000 --- a/delocator.rb +++ /dev/null @@ -1,30 +0,0 @@ -#!/opt/local/bin/ruby -require 'open-uri' -require 'rubygems' -require 'nokogiri' - -open('delocator-through300.csv').each{ |x| - -# puts x; - a = x.split(';') - a.collect! {|y| y.gsub('"','').strip } - #puts a.inspect - puts "#{a[2]} / #{a[4]} / #{a[7]}" - - #http://maps.google.com/maps/geo?key=ABQIAAAAtFasZCbmNcgcbPYf2QzmthRGkJoeiq1SV3lUa19TijJY1xm5GBRktV-c1x5Up1VCIZtc-A1BNhljfg&sensor=false&output=xml&oe=utf8&q=2214%20Ivy%20Road,%2022903 - - } - - #require 'net/http' - # response = Net::HTTP.get_response('maps.google.com', '/maps/geo?key=ABQIAAAAtFasZCbmNcgcbPYf2QzmthRGkJoeiq1SV3lUa19TijJY1xm5GBRktV-c1x5Up1VCIZtc-A1BNhljfg&sensor=false&output=xml&oe=utf8&q=2214%20Ivy%20Road,%2022903') - # response.code # => "200" - # response.body.size # => 21835 - # response['Content-type'] - # # => "text/html; charset=ISO-8859-1" - # puts response.body - - doc = Nokogiri::XML(open('http://maps.google.com/maps/geo?key=ABQIAAAAtFasZCbmNcgcbPYf2QzmthRGkJoeiq1SV3lUa19TijJY1xm5GBRktV-c1x5Up1VCIZtc-A1BNhljfg&sensor=false&output=xml&oe=utf8&q=2214%20Ivy%20Road,%2022903')) - doc.xpath('//google:Placemark', 'google' => 'http://earth.google.com/kml/2.0').each do |place| - puts place.content - end - \ No newline at end of file