Closed Sabine-Justilien closed 3 years ago
The code picks up the current elections from the google civic API. For example, last week it had the California gubernatorial recall listed. It is possible there are no immediate upcoming elections in Cali. I am not sure how far in the future it looks, but we depend on this API. @davidnixon, please chime in.
You can try it here. https://developers.google.com/civic-information/docs/v2/elections/electionQuery
Output:
{
"elections": [
{
"id": "2000",
"name": "VIP Test Election",
"electionDay": "2025-06-06",
"ocdDivisionId": "ocd-division/country:us"
},
{
"id": "7052",
"name": "Virginia Election",
"electionDay": "2021-11-02",
"ocdDivisionId": "ocd-division/country:us/state:va"
},
{
"id": "7078",
"name": "Georgia Election",
"electionDay": "2021-09-21",
"ocdDivisionId": "ocd-division/country:us/state:ga"
},
{
"id": "7145",
"name": "North Carolina Municipal Election",
"electionDay": "2021-10-05",
"ocdDivisionId": "ocd-division/country:us/state:nc"
},
{
"id": "7146",
"name": "Rhode Island Municipal Election",
"electionDay": "2021-10-05",
"ocdDivisionId": "ocd-division/country:us/state:ri"
}
],
"kind": "civicinfo#electionsQueryResponse"
}
Currently 4 states are available on the the dropdown menu.
Add new text:
If you cannot find your election, the information may not be available through the Google Civic Information API right now. Check out the 'Get Informed' tab to find out more information about your state elections.
after
Need help knowing where to go on voting day? Want to know what location in your precinct allows for early voting? Five Fifths Voter can help you figure it out. Input your address below, and select either "Early Voting" or "Polling Location". We'll do the rest.
@Sabine-Justilien is this the same solutions as #228?
Update - Sabine updated the comment above with the changes she wants to see.
@davidnixon pls see update from @Sabine-Justilien in the comment above.
@Sabine-Justilien looks like Upkar fixed this one too.
Fix is included. Ok to close.
Background on the problem the feature will solve/improved user experience
As we have a large audience in California, it is important we have information on California elections that are happening, including local or municipal elections (i.e. Los Angeles).
Describe the solution you'd like
In the drop down menu I'd like to see California, or more specifically Los Angeles, included as an option.
Tasks
Description of the development tasks needed to complete this issue, including tests,
Acceptance Criteria