From a wastd_api_response, turn the key payload (default: "features") into a tibble:tibble, and tidyr::unnest_wider the tibble into columns equivalent to the fields of the WAStD API serializer. If GeoJSON is found, the keys geometry (including coordinates) will remain unchanged, but the key properties will be unnested.

wastd_parse(wastd_api_response, payload = "data")

Arguments

wastd_api_response

A wastd_api_response from WAStD

payload

(chr) The name of the key containing the parsed httr::content() from the WAStD API call

Value

A tibble with one row per record and columns corresponding to each record's fields.

Details

[Stable]