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", "sector", "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", "sector", "organization", "groups"

Value

A data frame of values for the selected facet

Examples

# \donttest{
try(
  bcdc_search_facets("download_audience")
)
#>               facet count                  display_name
#> 1 download_audience  2276                        Public
#> 2 download_audience   228              Not downloadable
#> 3 download_audience    51                   Named users
#> 4 download_audience   176                            NA
#> 5 download_audience     8 Government and Business BCeID
#> 6 download_audience   496                    Government
#>                            name
#> 1                        Public
#> 2              Not downloadable
#> 3                   Named users
#> 4                            NA
#> 5 Government and Business BCeID
#> 6                    Government

try(
  bcdc_search_facets("res_format")
)
#>         facet count display_name         name
#> 1  res_format    34          zip          zip
#> 2  res_format    20          xml          xml
#> 3  res_format   629         xlsx         xlsx
#> 4  res_format   303          xls          xls
#> 5  res_format     1         wmts         wmts
#> 6  res_format   863          wms          wms
#> 7  res_format    30          txt          txt
#> 8  res_format   369          shp          shp
#> 9  res_format   166          pdf          pdf
#> 10 res_format    63        other        other
#> 11 res_format   475   oracle_sde   oracle_sde
#> 12 res_format    10 openapi-json openapi-json
#> 13 res_format  1114     multiple     multiple
#> 14 res_format    29          kmz          kmz
#> 15 res_format   865          kml          kml
#> 16 res_format    38         json         json
#> 17 res_format    84         html         html
#> 18 res_format    15         gpkg         gpkg
#> 19 res_format    17      geojson      geojson
#> 20 res_format   366         fgdb         fgdb
#> 21 res_format   318          e00          e00
#> 22 res_format   536          csv          csv
#> 23 res_format   128  arcgis_rest  arcgis_rest
# }