Skip to content

Specifying US Census Geography Vintage #161

Answered by jessecambon
cymonegates asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @cymonegates, yes you can pass the vintage parameter directly to the Census API. You can do this with the custom_query parameter in geo() (or geocode()) like this:

library(tidygeocoder)
geo('1600 Pennsylvania Ave NW Washington, DC', 
    method = 'census', 
    custom_query = list(vintage = "Public_AR_Census2010 "), 
    full_results = TRUE,
    verbose = TRUE
    )
#> 
#> Number of Unique Addresses: 1
#> Passing 1 address to the US Census single address geocoder
#> 
#> Number of Unique Addresses: 1
#> Querying API URL: https://geocoding.geo.census.gov/geocoder/locations/onelineaddress
#> Passing the following parameters to the API:
#> address : "1600 Pennsylvania Ave NW Washington, DC"
#

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cymonegates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants