From a tsc_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 TSC API serializer. If GeoJSON is found, the keys geometry (including coordinates) will remain unchanged, but the key properties will be unnested.

tsc_parse(tsc_api_response, payload = "data")

Arguments

tsc_api_response

A tsc_api_response from TSC

payload

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

Value

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

Details

[Stable]