From: botp Date: 2010-06-02T15:40:53+09:00 Subject: Re: Parsing geonames On Wed, Jun 2, 2010 at 2:30 PM, 12 34 wrote: > Thanks. I had tried places.country_name among others. Why the "first"? > places_nearby[0].country_code works too. > The docs didn't suggest how to parse the result. try playing w ruby using irb, places_nearby.class places_nearby.each_with_index{|x,i| puts"#{i}) #{x}"} places_nearby[0] places_nearby.size places_nearby[0].class places_nearby[0].methods > Thank you for the answers, but I'm not sure why it's working. But I can > proceed. welcome to ruby. kind regards -botp