Displaying 1 result from an estimated 1 matches for "coord_lon".
Did you mean:
coord_lat
2006 May 18
3
Google Map
...client=public&addr2=&quicksearch=#{postcode}")
do |f|
#coords = f.read.match(/lat=\"(-?\d+\.\d+)\"
lng=\"(-?\d+\.\d+)\"/)
ret_html = f.read
coord_lat = ret_html.match(/<dd class=\"latitude\">\d+:\d+:\d+\w
\((-?\d+\.\d+)\)/)
coord_lon = ret_html.match(/<dd class=\"longitude\">\d+:\d+:\d+\w
\((-?\d+\.\d+)\)/)
unless coord_lat.nil? and coord_lon.nil?
return { :lat => coord_lat.to_a[1], :long => coord_lon.to_a[1] }
else
return nil
end
end
end
end
--
Posted via http://...