Today’s project: providing access in XML to data about provincial electoral districts and polling divisions from Elections PEI via the Elections PEI API. The API saw initial use last year when we exposed municipal election ward and poll information; it’s now been extended to cover provincial election data as well.
Through the API you can get programmatic access to things like:
- a list of electoral districts
- KML files of district and polling division boundaries, like District 12, or District 12, Poll 5
- information about returning officers (name, address, telephone)
- information about regular and advance poll locations for each poll
It’s a simple REST API that associates each of the electoral district’s regular HTML web pages with an equivalent XML page. So the regular old human-readable page of information about District 12, Poll 5 at:
http://www.electionspei.ca/provincial/districts/district12/poll5
Has its XML cousin at:
http://www.electionspei.ca/xml/provincial/districts/district12/poll5
The development of the API with Elections PEI is a long-term effort and will continue; as such, we welcome feedback to api@electionspei.ca about how it meets, or does not meet, your data needs.
Add new comment