Skip to contents

Retrieve a list of entities from Porowhita Hauwhā. An entity is a construct, assigned by Auckland Council, that groups together assets, spaces, or services.

Usage

get_entities(..., test_db = FALSE)

Arguments

...

Optional expressions to filter the entities list, defied in terms of the variables in the returned tibble.

test_db

Retrieve this data from the test database? Defaults to FALSE.

Value

A tibble with eight variables.

Examples

# Retrieve a list of entities that are classed as Community Hubs from the test database
get_entities(designation == "Community Hub", test_db = TRUE)
#> # A tibble: 0 × 15
#> # ℹ 15 variables: facility_type <chr>, facility_id <chr>,
#> #   facility_attribute_id <chr>, name <chr>, physical_address <chr>,
#> #   local_board <chr>, latitude <lgl>, longitude <lgl>, designation <chr>,
#> #   delivery_model <chr>, facility_ownership <chr>, closed <lgl>,
#> #   staffed <lgl>, leased <lgl>, entry_access_type <chr>