The Census OnTheMap download links seems regular in formatting 1. This suggest someone may have already written an R package to download these files. Does such a package exist?
Other Comments:
- I don't want Decennial Census, or ACS (or else I'd use totalcensus or tidycensus).
- I already have the tabular data (CSV).
- Once I have a link, I know how to download it.
If not, how might I do so? (I have a list of about 30 counties I wish to do it for). The links seem regular. Regular links, for SLC, Utah and Denver, Colorado:
https://onthemap.ces.census.gov/cgi-bin/report.py?report_id=otm_d2c5f4708fff45dd8a153aeea29b66ae&settings=%7B%22analysis_type%22%3A%22area_profile_report%22%2C%22view%22%3A%22summary%22%2C%22characteristic%22%3A%22c000%22%2C%22year%22%3A2015%2C%22job_type%22%3A%22jt00%22%2C%22ap_segment%22%3A%22s000%22%2C%22origin%22%3A%22work%22%2C%22color%22%3A%5B%22%230000AA%22%5D%7D&mode=export_geography&format=shp
https://onthemap.ces.census.gov/cgi-bin/report.py?report_id=otm_b874bc58baa84cbea0d57c2f654450ef&settings=%7B%22analysis_type%22%3A%22area_profile_report%22%2C%22view%22%3A%22summary%22%2C%22characteristic%22%3A%22c000%22%2C%22year%22%3A2015%2C%22job_type%22%3A%22jt00%22%2C%22ap_segment%22%3A%22s000%22%2C%22origin%22%3A%22work%22%2C%22color%22%3A%5B%22%230000AA%22%5D%7D&mode=export_geography&format=shp
The string for the download link consists of 3 parts, the first and third of which are identical, viz:
- 1) https://onthemap.ces.census.gov/cgi-bin/report.py?report_id=otm_
- 2a) d2c5f4708fff45dd8a153aeea29b66ae
- 2b) b874bc58baa84cbea0d57c2f654450ef
- 3) &settings=%7B%22analysis_type%22%3A%22area_profile_report%22%2C%22view%22%3A%22summary%22%2C%22characteristic%22%3A%22c000%22%2C%22year%22%3A2015%2C%22job_type%22%3A%22jt00%22%2C%22ap_segment%22%3A%22s000%22%2C%22origin%22%3A%22work%22%2C%22color%22%3A%5B%22%230000AA%22%5D%7D&mode=export_geography&format=shp
In other words, is there a way to use R to automate a query on a webmap server?