View source: R/core-categories.R
categories | R Documentation |
A category describes a type of place, such as "movie theater" or "zoo". The places service has over 1,000 categories (or types) of place. The categories fall into ten general groups: Arts and Entertainment, Business and Professional Services, Community and Government, Dining and Drinking, Events, Health and Medicine, Landmarks and Outdoors, Retail, Sports and Recreation, and Travel and Transportation.
categories(
search_text = NULL,
icon = NULL,
language = NULL,
token = arc_token()
)
search_text |
Default |
icon |
Default |
language |
Optional case-sensitive parameter to specify the preferred language to. |
token |
an object of class |
The categories are organized into a hierarchical system where a general category contains many more detailed variations on the parent category. For example: "Travel and Transportation" (Level 1), "Transport Hub" (Level 2), "Airport" (Level 3) and "Airport Terminal" (Level 4). The hierarchy has up to 5 levels of categories.
A data.frame
with columns:
category_id
: the unique identifier for the category
full_label
: a list of character vectors containing all labels for the category
icon_url
: a character vector containing the icon URL if present
parents
: a list of character vectors containing the parent category_id
values
## Not run:
categories("Coffee Shop")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.