I'm creating an app that uses google_places gem and what I want to do is to search hotels and restaurants close to chosen location. Google_places gem helped me a lot, but all it shows is something like:
[#
@place_id="ChIJl6wYnDyG_UYRLHo26ttMYf0", @vicinity="48", @lat=54.1847303, @lng=18.432423, @viewport={"northeast"=>{"lat"=>54.1833813197085, "lng"=>18.1291523802915}, "southwest"=>{"lat"=>54.1833813197085, "lng"=>18.12645441970849}}, @name="Polando no name", @icon="https://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
Can I do something to display normally name and e.g. latitude? All I have is:
@types=["restaurant", "food", "point_of_interest", "establishment"],
<%= @client.spots(@trip.latitude, @trip.longitude, :radius => 100, :types => ['hotel','sleep'], detail: true) %
I couldn't find anything helpful in google_places gem repository and google, so I decided to write it here.
Thanks!