View source: R/core-place-details.R
place_details | R Documentation |
The /places/{placeId}
request returns details for a place.
place_details(
place_id,
requested_fields,
icon = NULL,
token = arc_token(),
.progress = TRUE
)
place_id |
a character vector of place IDs as generated by |
requested_fields |
Required. See API Reference for possible fields or refer to the |
icon |
Default |
token |
an object of class |
.progress |
Default |
To request details, you use the requested_fields
argument to specify the fields and the attributes you want from the Place, Address, Details and/or Location price groups.
It is always recommended to specify the fields you want, however, you can also use requested_fields=all
to return all of the attributes available. By default, The place_id
attribute is always returned in addition to the other attributes you requested.
The attributes available for places may vary. For example, opening hours may not be available (or applicable) for geographic places or landmarks.
You will only be charged for attributes that contain valid values for the requested fields. If no data is available for the requested field, null or an empty collection is returned and you are not charged. You are only charged once if one or more attributes with valid values are returned from a price group.
an sf object
## Not run:
place_ids <- c(
"37f1062ae1c3d37511003e382b08ca32",
"9cdd210841deedef0e3309bdd3fe47f1"
)
res <- place_details(place_ids)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.