google_place_details.Rd
Once you have a place_id from a Place Search, you can request more details about a particular establishment or point of interest by initiating a Place Details request. A Place Details request returns more comprehensive information about the indicated place such as its complete address, phone number, user rating and reviews.
google_place_details(place_id, language = NULL, simplify = TRUE, curl_proxy = NULL, key = get_api_key("place_details"))
place_id |
|
---|---|
language |
|
simplify |
|
curl_proxy | a curl proxy object |
key |
|
The amount of queries you can make to Google's APIs is dependent on both the service and the API you are using.
Each API has specific quotas and limits. Check Google's API documentation for details.
View your usage at the Google Cloud Console https://console.cloud.google.com/
Each API can only accept and return one request at a time. If you write a loop to make multiple API calls you should ensure you don't go over your quota / limits during the loop.
# NOT RUN { ## search for a specific restaurant, Maha, in Melbourne, firstly using google_places() res <- google_places(search_string = "Maha Restaurant, Melbourne, Australia", radius = 1000, key = key) ## request more details about the restaurant using google_place_details() google_place_details(place_id = res$results$place_id, key = key) # }