search for: googlekey

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

2006 Jul 14
2
RESTful thinking - Need some guidance.
...''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 = Document.new result (I''m using IRB to te...
2006 Jul 19
5
Model Validation - with a twist
...: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 retstatus.to_i == 200 coordinates = root.elements[...