-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with custom_query and geocodio #48
Comments
Thanks for reporting this. It looks like there was a simple oversight in the batch geocodio function (the custom_query argument just wasn't being passed). I put the fix on a separate branch and you can install it with this: devtools::install_github("jessecambon/tidygeocoder", ref = 'fix/geocodio-batch-custom') Hopefully that makes everything work as expected. You should be able to replicate the query you linked to with one function call like this: test <- some_addresses %>% geocode(
addr, method = "geocodio",
full_results = TRUE,
custom_query = list(fields = 'stateleg,cd')
) |
Yes, this is working perfectly now. Thanks for the update and quick reply! I really appreciate it. Also, in case anyone is interested, here is an example of how to get the full FIPS information using 2019 Census information (including census tract, block, etc):
|
Hi jessecambon, Is the fix above for MikeBurkePhD in the current tidygeocoder package or do i need a separate download? Any help is much appreciated! |
@ALFerino this fix is in the GitHub/development version of the package (master branch), but not the CRAN version yet. |
First, thank you for the excellent package.
I am running into an issue where
custom_query
won't pull the requested fields from the geocodio API.Reproducible example requesting state legislative districts or Census tracts via the field keys
stateleg
andtract_code
:My expectation was that this would give me the information contained within the
stateleg
andtract_code
keys from geocodio. This is the link to the relevent API documentaiton: https://www.geocod.io/docs/?shell#fields.I modeled this off the example in the
tidygeocoder
documentation for getting different vintages of census data (i.e.,list(vintage = 'Current_Census2010')
.The text was updated successfully, but these errors were encountered: