Geocoder for Sketchup ruby API

try this then…

dlg = UI::WebDialog.new("Show location", true, "ShowSketchupDotCom", 739, 641, 150, 70, true)
result = UI.inputbox(["Address"])
if result[0] != "" 
  reply = "http://www.google.com/maps/search/" + result[0].gsub(/\s/, '+')
end
 dlg.set_url(reply)
 dlg.show
2 Likes