Election Class


* - Required
* - Multiple rows

Election.getElection


This method grabs district basic election data according to electionId

Input: electionId*

Output:
elections.election*.electionId
elections.election*.name
elections.election*.stateId
elections.election*.officeTypeId
elections.election*.special
elections.election*.electionYear
elections.election*.stage*.stageId
elections.election*.stage*.name
elections.election*.stage*.stateId
elections.election*.stage*.electionDate
elections.election*.stage*.filingDeadline
elections.election*.stage*.npatMailed
elections.election*.stage*.major

Election.getElectionByYearState


This method grabs district basic election data according to year and stateid.

Input: year*, stateId(default: 'NA')
Output:
elections.election*.electionId
elections.election*.name
elections.election*.stateId
elections.election*.officeTypeId
elections.election*.special
elections.election*.electionYear
elections.election*.stage*.stageId
elections.election*.stage*.name
elections.election*.stage*.stateId
elections.election*.stage*.electionDate
elections.election*.stage*.filingDeadline
elections.election*.stage*.npatMailed
elections.election*.stage*.major

Election.getElectionByZip


This method grabs district basic election data according to zip code.

Input: zip5*, zip4(default: NULL), year(default: &gr;=current year
Output:
elections.election*.electionId
elections.election*.name
elections.election*.stateId
elections.election*.officeTypeId
elections.election*.special
elections.election*.electionYear

Election.getStageCandidates


This method grabs district basic election data according to electionId and stageId. Per state lists of a Presidential election are available by specifying the stateId.

Input: electionId*, stageId*, major*, party (Default: ALL(NULL)), districtId (Default: All(NULL)), stateId (Default: election.stateId)

Output:
stagecandidates.election*.electionId
stagecandidates.election*.name
stagecandidates.election*.stage
stagecandidates.election*.stateId
stagecandidates.candidate*.candidateId
stagecandidates.candidate*.officeId
stagecandidates.candidate*.district
stagecandidates.candidate*.firstName
stagecandidates.candidate*.middleName
stagecandidates.candidate*.lastName
stagecandidates.candidate*.suffix
stagecandidates.candidate*.party
stagecandidates.candidate*.status
stagecandidates.candidate*.voteCount
stagecandidates.candidate*.major
stagecandidates.candidate*.votePercent