DemocracyClub / EveryElection

:ballot_box_with_check: For recording every election in the UK
https://elections.democracyclub.org.uk/
BSD 3-Clause "New" or "Revised" License
11 stars 14 forks source link

Support Google's election format #164

Open symroe opened 6 years ago

symroe commented 6 years ago

Google have made a XML & JSON format for elections, candidates, results etc.

https://developers.google.com/elections-data/reference/

An example election object is here:

https://developers.google.com/elections-data/reference/election

They also provide a python package for validating the output, that we can use in our tests etc:

https://pypi.python.org/pypi/election_results_xml_validator/0.2.7

symroe commented 6 years ago

Note: this format is designed for Google to model elections all over the world, so it is bound to miss a few things or break in some cases. We should priorities parl elections as that's the use case they're after.

chris48s commented 6 years ago

Do we have full results data for parl.2017-06-08 in the same format we'll want to use for parl.next?