I see.  Now it is clear.  I was under the impression that the inspect method 
was just a representation of the returned array.  Good to know.  Thanks for the 
notes.  

Cheers

On Feb 6, 2014, at 12:06 AM, Gautam Rege <gautamr...@gmail.com> wrote:

> Your'e looking at the result in correctly,-- that is not a comment in the 
> array! Its the "stringified" output of the array that contains 
> Geocoder::Result objects.
> 
> res = Geocoder.search(addy1).first
> 
> res.data   # => gives you entire data .. seen as @data and then you can 
> traverse as a hash
> 
> There are other helper routines too (a few mentioned below).
> res.address
> res.city
> res.state
> res.formatted_address
> res.coordinates 
> 
> etc. See these two files to learn all the methods of Geocoder::Result 
> https://github.com/alexreisner/geocoder/blob/master/lib/geocoder/results/google.rb
>  
> https://github.com/alexreisner/geocoder/blob/master/lib/geocoder/results/base.rb
> 
> Cheers!

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/0974985E-7CE2-4482-901F-DD804945848A%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to