# returns a tibble of output
if (FALSE) get_theme(token, "hotels")
if (FALSE) get_theme(token, "monuments",
extents = "1.291789,%20103.7796402,1.3290461,%20103.8726032")
# returns a sf dataframe
if (FALSE) get_theme(token, "hotels", read = "sf")
# returns a list of status tibble and output tibble
if (FALSE) get_theme(token, "funeralparlours", return_info = TRUE)
# error: output is NULL, warning message shows status code
if (FALSE) get_theme("invalid_token", "hotels")
# error: output is NULL, warning message shows error message from request
if (FALSE) get_theme(token, "non-existent-theme")
# error: output is \code{query_info}, warning message query did not return any records
if (FALSE) get_theme(token, "ura_parking_lot", "1.291789,%20103.7796402,1.3290461,%20103.8726032")
Run the code above in your browser using DataLab