July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.
results_array = ActiveSupport::JSON.decode response.body if results_array && "OK" == results_array["status"] results_array["results"].each do |result| puts logger.info lat = result["geometry"]["location"]["lat"] end
...But still couldn't figure out how to extract the latitude and longitude.
response_2 = JSON.parse(response.body)
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.