I’m trying to create a model of a house that exists in real life, and add an inputbox where the user can write the actual address of that house and then show location of that building in Google Maps.
i tried to install geocoder: Gem.install(“geocoder”)
but it doesn’t find it:
Code: Select allGem.install("geocoder")
Error: #<Gem::SpecificGemNotFoundException: Could not find a valid gem 'geocoder' (>= 0) locally or in a repository>
C:/Program Files/SketchUp/SketchUp 2016/Tools/RubyStdLib/rubygems/dependency_installer.rb:301:in `find_spec_by_name_and_version'
C:/Program Files/SketchUp/SketchUp 2016/Tools/RubyStdLib/rubygems/dependency_installer.rb:110:in `available_set_for'
C:/Program Files/SketchUp/SketchUp 2016/Tools/RubyStdLib/rubygems/dependency_installer.rb:322:in `install'
C:/Program Files/SketchUp/SketchUp 2016/Tools/RubyStdLib/rubygems.rb:526:in `install'
<main>:in `<main>'
SketchUp:1:in `eval'
does this gem works only for Ruby on Rails and Sinatra … ? is there another gem like geocoder that is used for the Ruby Sketchup API ?
yeah i tried some addresses but instead of /place/ i used /search/ so it adds the “+” by itself and generates the /place/ with “+” UI.openURL("https://www.google.com/maps/search/123 Toongarra Rd, Wulkuraka QLD 4305")
thnx for your answer
i was trying to clique on menu and get a popup with the location of the house on a map based on the address given by the user.
i solved it using this code: