search for: googleoutput

Displaying 2 results from an estimated 2 matches for "googleoutput".

2006 Jul 14
2
RESTful thinking - Need some guidance.
...P. Here''s the code I have so far: require ''open-uri'' require ''rexml/document'' include REXML url=''http://maps.google.com/maps/geo?'' address = ''q=1600 Amphitheatre Parkway Mountin View,CA'' address1 = URI.escape(address) googleoutput = ''&output=xml'' googlekey = ''&key=mykey'' result=URI(url+address1+googleoutput+googlekey ).read doc = Document.new result r=doc.elements["/Response/Point"] @googlresult = r.attributes["coordinates"] It works up till this line doc = Do...
2006 Jul 19
5
Model Validation - with a twist
...+ params[:bookstore][:city] + ", " + params[:bookstore][:state] + " " + params[:bookstore][:zipcode] address2 = ''q='' + addresscheck url=''http://maps.google.com/maps/geo?'' address = address2 address1 = URI.escape(address) googleoutput = ''&output=xml'' googlekey = ''&key=mykey'' result=URI(url+address1+googleoutput+googlekey ).read doc = Document.new(result.to_s) root = doc.root retstatus = root.elements[''/kml/Response/Status/code''].text if retstat...