Code Monkey home page Code Monkey logo

Comments (4)

zmoore152 avatar zmoore152 commented on August 14, 2024 2

Thanks for the help everyone! I figured it might have something to do with the 2020 census, but wasn't sure.

from censusxy.

chris-prener avatar chris-prener commented on August 14, 2024

hi @zmoore152 - thanks for the bug report! This is probably a change in their API - we'll look into it.

from censusxy.

bransonf avatar bransonf commented on August 14, 2024

@zmoore152 Thanks for providing a reproducible example, extremely helpful.

As you are probably aware, the Census Bureau is updating everything with the completion of the 2020 census, including their geocoding API. Because of this, I expect the benchmarks and vintages may be unstable. I assume vintage = "910" worked yesterday, but it no longer appears valid:

> cxy_benchmarks()
     id        benchmarkName                          benchmarkDescription isDefault
2     4    Public_AR_Current     Public Address Ranges - Current Benchmark     FALSE
21    8    Public_AR_TAB2020     Public Address Ranges - TAB2020 Benchmark     FALSE
3     9 Public_AR_Census2010 Public Address Ranges - Census 2010 Benchmark     FALSE
4  2020 Public_AR_Census2020 Public Address Ranges - Census 2020 Benchmark     FALSE

> cxy_vintages('Public_AR_Census2020')
     id           vintageName                          vintageDescription isDefault
2  2020 Census2020_Census2020 Census 2020 Vintage - Census 2020 Benchmark      TRUE
21 2010 Census2010_Census2020 Census 2010 Vintage - Census 2020 Benchmark     FALSE

Running your example with the vintage changed seems to work and append GEOIDs.

> output <- cxy_geocode(sample_df, street="street_name", state = "state_name", zip="zip_code", city = "city_name",
 return = "geographies", benchmark = "Public_AR_Census2020", vintage = "Census2020_Census2020", output = "full")
> output
   street_name state_name zip_code     city_name                            cxy_address cxy_status cxy_quality
1 241 Cary Ave         IL    60035 Highland Park 241 Cary Ave, Highland Park, IL, 60035      Match       Exact
                     cxy_matched_address cxy_tiger_line_id cxy_tiger_side   cxy_lon  cxy_lat cxy_state_id cxy_county_id
1 241 CARY AVE, HIGHLAND PARK, IL, 60035         119652033              R -87.77744 42.16783           17            97
  cxy_tract_id cxy_block_id
1       865600         2011

I'd advise caution using the 2020 benchmarks at the moment, and keep in mind that the geographies are changing (https://www.census.gov/geographies/mapping-files/time-series/geo/tiger-line-file.html) and won't be fully available until end of Feburary. I don't know precisely how this affects GEOIDs, but definitely worth considering.

@chris-prener We may need to change the default behavior for benchmark/vintages, but probably shouldn't do so without waiting for 2020 data to be widely adopted.

from censusxy.

chris-prener avatar chris-prener commented on August 14, 2024

Thanks for the detailed response @bransonf - I like the idea of waiting a bit to see how this works out. Let's leave this open as a reminder, but I'll change the tag from bug

from censusxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.