UNPKG

openapi-directory

Version:

Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS

1 lines 2.86 kB
{"openapi":"3.0.0","info":{"contact":{"x-twitter":"PhiladelphiaGov"},"description":"\nThis data set contains the list of polling places. It can be organized by ward/division, accessibility rating, or type of building.\n\nThis list is used to assign poll workers, send the machines and necessary accessibility materials, etc.\n\n**Endpoint:** http://api.phila.gov/polling-places/v1\n","title":"Polling Places API","version":"1.0","x-apisguru-categories":["open_data"],"x-logo":{"url":"https://twitter.com/PhiladelphiaGov/profile_image?size=original"},"x-origin":[{"format":"swagger","url":"https://raw.githubusercontent.com/CityOfPhiladelphia/phlapi/gh-pages/pollingplaces/swagger.json","version":"2.0"}],"x-providerName":"phila.gov","x-serviceName":"pollingplaces"},"paths":{"/":{"get":{"parameters":[{"description":"Ward Number","in":"query","name":"ward","required":true,"schema":{"type":"integer","format":"int32"}},{"description":"Division Number","in":"query","name":"division","required":true,"schema":{"type":"integer","format":"int32"}},{"description":"Optional parameter for jsonp support.","in":"query","name":"callback","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"An array containing the polling place","content":{"application/json":{"schema":{"$ref":"#/components/schemas/features"}}}}},"summary":"Get Polling Places Data"}}},"servers":[{"url":"http://api.phila.gov/polling-places/v1"}],"components":{"schemas":{"features":{"properties":{"building":{"description":"Assigned code to denote the accessibility of the polling place. See above for details of the codes.\nF = Building Fully Accessible;\nB = Building Substantially Accessible;\nM = Building Accessibilty Modified;\nA = Alternate Entrance;\nR = Building Accessible With Ramp;\nN = Building Not Accessible\n","type":"string"},"display_address":{"description":"Mailing address of the polling place (formatted for display purposes).","type":"string"},"division":{"description":"The number of the electoral section that houses the polling place.","type":"string"},"lat":{"description":"Latitudinal coordinates of the polling place.","format":"float","type":"number"},"lng":{"description":"Longitudinal coordinates of the polling place.","format":"float","type":"number"},"location":{"description":"The name of the polling place.","type":"string"},"parking":{"description":"Assigned code to denote the availability of parking. See above for details of the codes.\nN = No Parking;\nG = General Parking;\nL = Loading Zone;\nH = Handicap Parking\n","type":"string"},"pin_address":{"description":"Mailing address of the polling place.","type":"string"},"ward":{"description":"The number of the electoral subdivision that houses the polling place.","type":"string"},"zip_code":{"description":"Zipcode of the polling place.","format":"int32","type":"integer"}}}}}}