-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
Trouble specifying vintage with call_geolocator_latlon() #151
Comments
@bencarey86 thanks for filing this. The geolocator functions in tigris need some maintenance and I may deprecate them in favor of a new interface. This will take me a little time to do as even getting the vintage right isn't working. I did implement this over on the Python side so you can see the direction I'm going: from pygris.geocode import geolookup
geolookup(latitude = 32.4, longitude = -86.5, benchmark = "Public_AR_Census2020", vintage = "Census2010_Census2020") |
It appears they made quite a few changes to what benchmarks and vintages are available. for reference: You can get the list of available benchmarks here When you do not specify a benchmark in your command the function will automatically use "Public_AR_Current" You are supposed to be able to get a list of vintages for a benchmark by using this link so using the command without specifying a benchmark or vintage You can go to this page |
Hi, Initially, I was using call_geolocator_latlon() from the tigris package in R and kept having issues when I put in the arguments benchmark="Public_AR_Census2010" and vintage="Census2010_Census2010" in the function. Therefore, I switched to using the Python package pygris. However while implementing the geolookup function from the pygris package, when I use the arguments benchmark="Public_AR_Census2010" and vintage="Census2010_Census2010", the Python console tells me I am using invalid entries for benchmark and vintage. I tried using either the benchmark argument or the vintage argument, but each time I am told I am using invalid entries. The function works if I do not specify the benchmark or the vintage arguments. |
Adds validation for benchmark and vintage
Hi,
I am trying to specify a vintage within call_geolocator_latlon() but receive an error each time, regardless of the year I input.
For example,
call_geolocator_latlon(lat = 32.4, lon = -86.5)
returns[1] "010010208011015"
, butcall_geolocator_latlon(lat = 32.4, lon = -86.5, vintage = 2010)
returnsBad Request (HTTP 400).
I wasn't able to find any examples of specifying the vintage on the internet, so I'm not sure if I'm just using the function incorrectly or if there is a bigger issue. Thanks!
The text was updated successfully, but these errors were encountered: