mountainMath / cancensus

R wrapper for calling CensusMapper APIs
https://mountainmath.github.io/cancensus/index.html
Other
82 stars 15 forks source link

[feature request] querying shapes directly #197

Closed 18kimn closed 1 year ago

18kimn commented 1 year ago

I'm interested in querying census boundary files directly, but this is only possible with cancensus if we query census data alongside it. Could this logic be separated and a dedicated function be exposed for shapefile access?

I'm not really sure how the underlying API works and if CensusMapper supports such a call, so please feel free to close in that case

mountainMath commented 1 year ago

In a call with an empty vectors argument you will just get the geographic data, plus population, household and dwelling counts.

If you are interested in comprehensive geographic data, starting version 0.5.5 there is the option to query comprehensive geography files directly from StatCan for the 2021 census using get_statcan_geographies().

18kimn commented 1 year ago

ah fantastic, thank you!