Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
51 lines (38 sloc) 2.32 KB

Onondaga County Polling Location API

Onondaga County doesn't provide easy access to information on polling locations. You can either read a PDF document to get polling locations, or use an outdated and not very user friendly web application.

I built this very simple API in the hopes that it would encourage people to think about the different ways that polling location information might be used. I also hope to show county officials that there are limitless possibilities for engaging people and enhancing the quality of services and information we get from government if they release open data.

Much of the information provided by the existing County web application can also be obtained through the Google Civic Information API. However, a polling location API specific to Onondaga County can provide more detailed, more accurate, and more recently updated information for voters. It can also act as an invitation to local technologists and software developers to build new ways to explore this important data and help ensure more people find their way to the polls on Election Day.

Example usage

Base URL

https://apis.opensyracuse.org/elections/
~$ curl -X GET https://apis.opensyracuse.org/elections/?house_num=1500&street_name=South%20Geddes%20Street&zip=13207
curl -X POST -H 'Content-type: application/json' \
-H 'Accept: application/json' \
-d '{"house_num": 1500, "street_name": "South Geddes Street", "zip": 13207}' \
https://apis.opensyracuse.org/elections/

Response

{
  "otherDistrict4": null,
  "otherDistrict3": null,
  "otherDistrict2": "16th County Legislative District",
  "otherDistrict1": "3rd City Council District",
  "assembly": "128th Assembly District",
  "senate": "53rd Senatorial District",
  "name": "ELMWOOD SCHOOL BLDG (GYM)",
  "fullAddress": "1728 SOUTH AVE SYRACUSE NY 13207 ",
  "disabled": "This Polling Place is Accessible to the disabled",
  "town": "Syracuse",
  "ward": "000",
  "district": "001",
  "school": null,
  "congress": "24th Congressional District"
}

Note: JSONP is supported by using a callback parameter with GET requests.