closecity: Client for the 'Close' API

Access travel times from every US census block to nearby points of interest, by walking, biking, and public transit, over the 'Close' API. Wraps the metered, read-only public endpoints with keyset pagination, ETag/304 conditional requests, token accounting, typed RFC 9457 error handling, and tabular output by default ('sf' where geometry applies, a data frame otherwise).

Version: 1.5.0
Depends: R (≥ 4.1)
Imports: httr2 (≥ 1.0.0), jsonlite, R6, rlang, sf
Suggests: testthat (≥ 3.0.0), withr, tigris, plotly, geojsonsf, knitr, rmarkdown
Published: 2026-08-02
DOI: 10.32614/CRAN.package.closecity (may not be active yet)
Author: Nathaniel Henry [aut, cre], Henry Spatial Analysis [aut, cph, fnd]
Maintainer: Nathaniel Henry <nat at henryspatialanalysis.com>
BugReports: https://github.com/henryspatialanalysis/closecity-r/issues
License: MIT + file LICENSE
URL: https://henryspatialanalysis.github.io/closecity-r/, https://github.com/henryspatialanalysis/closecity-r
NeedsCompilation: no
Materials: README, NEWS
CRAN checks: closecity results

Documentation:

Reference manual: closecity.html , closecity.pdf
Vignettes: The amenity basket (source, R code)
Get started with closecity (source, R code)
Competitor walksheds (source, R code)
Your first walkability map (source, R code)
Looking for a home (source, R code)
Efficient token use (source, R code)

Downloads:

Package source: closecity_1.5.0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): closecity_1.5.0.tgz, r-oldrel (arm64): closecity_1.5.0.tgz, r-release (x86_64): closecity_1.5.0.tgz, r-oldrel (x86_64): closecity_1.5.0.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=closecity to link to this page.