@cityssm/voterview-api
v0.4.0
Published
An unofficial wrapper around the VoterView Online Voter Services REST API
Readme
VoterView API for Node
An unofficial wrapper around DataFix's VoterView Online Voter Services REST API.
💡 Watch for a refreshed "Voter Services" portal taking full advantage of the VoterView API. Going open source soon!
API Features
- Well typed to get started quickly.
- Built-in caching of rarely updated values.
- Documentation error fixes. Less trial-and-error for you!
- Easier application debugging with pre-request validation.
- Helper functions to clean messy results and add features not part of the official API.
Installation
npm install @cityssm/voterview-apiUsage
import { VoterViewApi } from '@cityssm/voterview-api'
const voterViewApi = new VoterViewApi(
'9999',
'voterViewUser',
'voterViewPassword'
)
const candidates = await voterViewApi.getCandidateListByWard('01')
const streetAddresses = await getStreetAddresses('99 FO')Related Projects
Civic Address Format Formats a civic address from its pieces using Canada Post guidelines.
Statistics Canada (StatsCan) Tools for Node Lookups and utilities for working with Statistics Canada (StatsCan) data.
MPAC Tools from Node Lookups and utilities for working with MPAC data.
