https://github.com/willdebras/civiclookup
publishing base mobile app for pulling civic information
https://github.com/willdebras/civiclookup
Last synced: 3 months ago
JSON representation
publishing base mobile app for pulling civic information
- Host: GitHub
- URL: https://github.com/willdebras/civiclookup
- Owner: willdebras
- Created: 2021-02-11T16:22:37.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-04-24T00:59:55.000Z (almost 3 years ago)
- Last Synced: 2024-08-13T07:11:55.981Z (6 months ago)
- Language: R
- Size: 392 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
Awesome Lists containing this project
- jimsghstars - willdebras/civiclookup - publishing base mobile app for pulling civic information (R)
README
---
output: github_document
---```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
```# Civic Information Lookup application
The Civic Info Lookup app is a mobile app built in Shiny with an F7 shinyMobile framework. The application was built to showcase the ability to develop attractive mobile applications in Shiny and to showcase the {googlecivic} package. It utilizes the {googlecivic} package to help an individual find polling locations, contact information for their political representatives and explore upcoming elections in their state. It utilizes leaflet.js and MapQuest.js to visualize polling locations and {tuicalendr}/tui-calendar to visualize election dates and information in an attractive calendar.
# Polling information
Polling addresses are pulled from the Voter Information endpoint of the Google Civic Info API. Sanitized addresses are then sent to calls to MapQuest.js and rendered on a leaflet map.

The map tooltip contains the link to the polling location.
# Representative information
Representative information is pulled from the Representative Information by Address endpoint of the Google Civic Info API. Information is pulled for representatives from the local to the national level and available website and email information are accessible in a clean, attractive datatable.

# Upcoming elections
Information for upcoming elections are periodically scraped from the [Ballotpedia page on upcoming elections](https://ballotpedia.org/Elections_calendar) using Github Actions. Addresses are sanitized with the Voter Information API endpoint to determine state and then all elections and filing deadlines are visualized on a tui-calendar widget created by the {tuicalendr} package.
{width=40%}
{width=40%}# Contact
This app includes some uptime around elections, but due to the costs of geocoding, search-ahead for address autofill, and rendering of basemaps means this application is not always live. Feel free to reach out if you are interested in a demo or want to host the application and are running into trouble with API credentials.