Builds a CloseClient. The catalog and health routes are free, so a key is
optional. Every data route needs one (a ck_live_ key), created at
https://account.close.city (5,000 free tokens on signup, no card).
Arguments
- api_key
(
character(1), default NULL)
Your API key, or NULL for the free routes. When NULL, theCLOSECITY_KEYenvironment variable is used if set.- base_url
(
character(1))
API base URL.- timeout
(
numeric(1), default 30)
Request timeout, in seconds.- output
(
character(1), default'spatial')
How results come back:'spatial'returns an sf object where geometry applies and a data frame otherwise;'tabular'returns a data frame for every route and never downloads block boundaries;'raw'returns the close_reply.
Value
A CloseClient. Make calls through its methods.
