User Tools

Site Tools


version_1.0_pollsiteinfo

Poll Site Info (Version 1.0)

This version returns Early Voting Site Information in addition to Election Day Site Information.

This is the main service for the PSL app providing poll site information based on the address used in the call. This poll site information is kept current by the election administrator (account) on a frequent and automated basis making it very important to use this service in a transactional manner.

Call:

pollsiteinfo GET Service at https://nyc.electionapi.com/psl/version/1.0/pollsiteinfo?latitude={LATITUDE}&longitude={LONGITUDE}&county={COUNTY}&streetnumber={STREETNUMBER}&streetname={STREETNAME}&postalcode={POSTALCODE}
  • {STREETNUMBER} - house number of address on street - this is required
  • {STREETNAME} - the name of the street where house is located - this is required
  • {POSTALCODE} - the zip code of the address of the house - this is highly recommended but is optional if county is used
  • {COUNTY} - County in which address resides - optional if postal code is used

OR

  • {LATITUDE} - only supported by election administrators (accounts) that supply polygon data for voting districts
  • {LONGITUDE} - only supported by election administrators (accounts) that supply polygon data for voting districts

This is the basic call to retrieve poll site information for a given address or geographic coordinates supplied. A subdomain (account) only supports one method of search, either geographic coordinates or address. For an address-based search you must supply a street number, street name and postal code or county. For a geographic coordinate-based search you must supply a latitude point and longitude point.

NOTE: Be sure to include the API Key parameter with your call see api_keys

Returns:

voter_entrancelocation at the poll site where voter can enter building
trxinternal - ignore
site_numberthe election administrator's unique identifier of poll site
site_namethe election administrator's name of poll site
Site_Last_Modified_DTTMjson date of when the poll site information was last modified
Site_Created_DTTMjson date of when the poll site information was first created
site_addressstreet number, street name, city, state and zip of poll site
ev_voter_entrance location at the Early Voting poll site where voter can enter building
ev_site_number the election administrator's unique identifier of the Early Voting poll site
ev_site_name the election administrator's name of the Early Voting poll site
ev_site_address street number, street name, city, state and zip of the Early Voting poll site
ev_longitude the approximate longitude for the center of the lot the poll site is on
ev_latitude the approximate latitude for the center of the lot the poll site is on
ev_polling_room description of the polling room for elections within the Early Voting poll site
ev_handicap_entrance the location at the Early Voting poll site which is handicap accessible
senate_districtencompassing senatorial district for the supplied address
polling_roomdescription of the polling room for elections within the poll site
objectCountinternal - ignore
municipal_court_districtencompassing municipal court district for the supplied address
markerwhere the map marker should be placed
longitudethe approximate longitude for the center of the lot the poll site is on
locationinternal - ignore
latitudethe approximate latitude for the center of the lot the poll site is on
judicial_districtencompassing judicial district for the supplied address
handicap_entrancethe location at the poll site which is handicap accessible
election_districtencompassing voting district (precinct, ward or election precinct) for supplied address
electionsarray of upcoming declared elections (if any)
ED_Site_Effective_DTTMjson date when site becomes effective for use
destinationaddress or geographic coordinate of poll site to be used for navigational systems
council_districtencompassing city council district for the supplied address
congress_districtencompassing US congressional district for the supplied address
assembly_districtencompassing state assembly district for the supplied address

election array item contains:

Descriptionfull descriptor of election
ElectionCodetwo character code for the type of election
ElectionNameNoDatethe descriptor without the date
ElectionTypetype of election
FilingTypemethod by which candidates file for the election
IDunique integer for the election
IsArchivedflag for determining the status of the data
IsNonPartisanflag indicating whether or not candidates may run under state recognized parties
MapIdinternal identifier relating back to a redistricting map
objectCountinternal - ignore
partiesarray of parties eligible for the election, see contestlist for more
SchedulingRuleIDinternal identifier for the type of election
StartDateJSON representation of the date of the election
trxinternal - ignore
YYYYMMDD_StartDatethe election date in yyyymmdd format
version_1.0_pollsiteinfo.txt · Last modified: 2019/09/18 08:40 by timsmith