But usually 10% or fewer of those races change between one load and the next. Once loaded, the AP files provide a complete representation of the election at that particular moment in time. This constraint shaped a lot of our design, but the resulting code enabled several powerful features down the road. We wanted to run a load roughly once a minute, and just grabbing all those files from the FTP server takes approximately 30 seconds… so clearly, we needed to be fast with everything else. Still, this means loading 102 files on a general election night (two for every state and the District of Columbia) containing some 50,000 state and county races. The Candidates file is largely fixed by the time an election occurs in a given state, so it only needs to be loaded once at the beginning of a cycle. The Results file provides the vote totals for each candidate in a race.The Candidates file provides a list of AP candidates and their identifiers.This file includes both statewide and county-level results (i.e., the Presidential results for Ohio and the Presidential results for Cuyahoga County, Ohio). The Races file specifies basic race metadata (i.e., this is the Ohio House 7th District Republican Primary) and records how many precincts are reporting at any given point in the night. There are three files that specify the election results in a state: There are roughly two tiers of customers for the AP Election Results: the TV networks who pay lavishly for the timeliest results, and the other news organizations like newspapers that get a slightly time-delayed version via FTP.įor us, the AP provides an FTP server where they update election files on a regular basis. Google may have had some success providing results from some early caucuses, but nobody matches the depth of AP’s operation. Like every other news organization on the planet, we get our election results data from the Associated Press.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |