Skip to content

Instantly share code, notes, and snippets.

@dwillis
Last active December 17, 2015 16:59
Show Gist options
  • Select an option

  • Save dwillis/5642775 to your computer and use it in GitHub Desktop.

Select an option

Save dwillis/5642775 to your computer and use it in GitHub Desktop.
Election Data Spec Version 2 Example
[{
"id": "md-2012-11-06-general",
"year": 2012,
"start_date": "2012-11-06",
"end_date": "2012-11-06",
"division": "ocd-division/country:us/state:md",
"result_type": "Certified",
"election_type": "General",
"party": "",
"special": false,
"offices": [{"State Legislature": true}, {"Senate": true}, {"House": true}, {"President": true}, {"State Officers": false}, {"Governor": false}],
"reporting_levels": [{"Race-wide": true }, {"County": true}, {"Congressional District": false}, {"State Legislative": true}, {"Precinct": true}],
"absentee_provisional": true,
"notes": "Early Voting, Absentee and Provisional vote counts are not reported at the precinct level; those counts are only included in the county level files.",
"source_url": "http://www.elections.state.md.us/elections/2012/election_data/index.html",
"updated_at": "2013-05-24 00:00:00-05:00"
},
{
"id": "md-2012-04-03-primary-democratic",
"year": 2012,
"start_date": "2012-04-03",
"end_date": "2012-04-03",
"division": "ocd-division/country:us/state:md",
"result_type": "Certified",
"election_type": "Primary",
"party": "Democratic",
"special": false,
"offices": [{"State Legislature": true}, {"Senate": true}, {"House": true}, {"President": true}, {"State Officers": false}, {"Governor": false}],
"reporting_levels": [{"Race-wide": true }, {"County": true}, {"Congressional District": false}, {"State Legislative": true}, {"Precinct": true}],
"absentee_provisional": true,
"notes": "Early Voting, Absentee and Provisional vote counts are not reported at the precinct level; those counts are only included in the county level files.",
"source_url": "http://www.elections.state.md.us/elections/2012/election_data/index.html",
"updated_at": "2013-05-24 00:00:00-05:00"
}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment