Skip to contents

Get the valid values for a facet (that you can use in bcdc_search())

Usage

bcdc_search_facets(
  facet = c("license_id", "download_audience", "res_format", "publish_state",
    "organization", "groups")
)

Arguments

facet

the facet(s) for which to retrieve valid values. Can be one or more of: "license_id", "download_audience", "res_format", "publish_state", "organization", "groups"

Value

A data frame of values for the selected facet

Examples

# \donttest{
try(
  bcdc_search_facets("download_audience")
)
#>               facet                          name
#> 1 download_audience                        Public
#> 2 download_audience              Not downloadable
#> 3 download_audience                   Named users
#> 4 download_audience                            NA
#> 5 download_audience Government and Business BCeID
#> 6 download_audience                    Government
#>                    display_name count
#> 1                        Public  2317
#> 2              Not downloadable   251
#> 3                   Named users   110
#> 4                            NA   190
#> 5 Government and Business BCeID     9
#> 6                    Government   598

try(
  bcdc_search_facets("res_format")
)
#>         facet         name display_name count
#> 1  res_format          zip          zip    33
#> 2  res_format          xml          xml    20
#> 3  res_format         xlsx         xlsx   661
#> 4  res_format          xls          xls   305
#> 5  res_format         wmts         wmts     1
#> 6  res_format          wms          wms   862
#> 7  res_format          txt          txt    30
#> 8  res_format          shp          shp    58
#> 9  res_format          pdf          pdf   178
#> 10 res_format        other        other   387
#> 11 res_format   oracle_sde   oracle_sde   600
#> 12 res_format openapi-json openapi-json    11
#> 13 res_format     multiple     multiple  1112
#> 14 res_format          kmz          kmz    31
#> 15 res_format          kml          kml   861
#> 16 res_format         json         json    12
#> 17 res_format         html         html   100
#> 18 res_format         gpkg         gpkg    22
#> 19 res_format      geojson      geojson    17
#> 20 res_format         fgdb         fgdb    94
#> 21 res_format          csv          csv   560
#> 22 res_format  arcgis_rest  arcgis_rest   138
# }