Displaying 1 result from an estimated 1 matches for "postcode2".
Did you mean:
postcode
2006 May 18
3
Google Map
...to_latlong
Then postcode.rb in /lib reads...
require ''uri''
require ''open-uri''
class Postcode
def initialize(postcode)
@postcode = postcode
end
def to_latlong
#postcode = URI.escape(@postcode)
postcode = @postcode.gsub(/ /, "+")
postcode2 = @postcode.gsub(/ /, "")
#open("http://maps.google.com/maps?q=#{postcode}") do |f|
open("http://multimap.com/map/browse.cgi?client=public&search_result=&db=pc&cidr_client=none&lang=&keepicon=true&pc=#{postcode2}&advanced=&client=pub...