Comments (5)
Hi @smntkm, I'm not sure why this fails for you; I cannot reproduce the issue:
client = GooglePlaces::Client.new(API_KEY)
id = client.spots(-33.8670522, 151.1957362).first.place_id
client.spot(id).name
=> "Pyrmont"
from google_places.
Hi @marceldegraaf, Thank you for reply.
I also and try the above code, data was able to get.
But, the same error came out in reference.
forgot to say the attribute to get, sorry.
client = GooglePlaces::Client.new(API_KEY)
reference = client.spots(-33.8670522, 151.1957362).first.reference
client.spot(reference)
=> GooglePlaces::InvalidRequestError: GooglePlaces::InvalidRequestError
from google_places-0.24.0/lib/google_places/request.rb:325:in `parsed_response'
from google_places.
Hi @smntkm, I see what happens. But it is expected, because you can only use the place_id
as parameter to client.spot()
, not the reference
.
from google_places.
Hi @marceldegraaf, I was wrong.
I'm sorry.
From now on, I will use the palce_id.
Thank you.
from google_places.
No problem! 😊
from google_places.
Related Issues (20)
- Google Search doesn't support multiple types per request (its deprecated)
- predictions_by_input not working HOT 6
- Httparty at version 0.15.6 HOT 4
- 502 from Google not handled gracefully HOT 2
- Client#spots should really be called Client#spots_by_coordinates HOT 5
- detail: true HOT 2
- how to store result sets for future use? HOT 2
- Spot::opening_hours Always Nil HOT 3
- [Feature request] Ability to pass an Autocomplete session token into Autocomplete requests HOT 4
- is there a way to use zip code to find city and state?
- Support for user_ratings_total HOT 2
- [feature request] support the Find Places api HOT 1
- Add fields option to spots search with detail HOT 3
- components filtering not available
- spot_by_query method should take a field option
- Add spots_by_place_ids option HOT 2
- Issue with Field specification – Atmospheric Data is being called even when a related field is not specified. HOT 2
- No "profile_photo_url" in review HOT 1
- Argument Error HOT 5
- Prediction object doesn't set all of the fields HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from google_places.