Skip to content
Mobile-responsive map that helps you get to your polling place.
JavaScript CSS
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitignore
README.md
beta85.png
bigscreen.css
bostonlogo.png
elect-app.js
index.html
ondesktop.png
onmobile.png
onmobile2.png
style-old-ie.css
style.css
translations.js

README.md

Elect-App

Overview

A lightweight, mobile-responsive site which gives you directions to your polling place.

Features

  • Works on smartphones, tablets, and full-sized computers
  • Uses Google Maps to find your address and provide directions (walking, transit, or driving)
  • Press "Use My Location" to switch to directions from where you are, not where you live
  • Retrieves polling place data directly from an ArcGIS REST service

Screenshots

Desktop

Mobile

Technologies Used

Adaptable

Data service URLs and helpers are defined at the top of elect-app.js. This makes it possible for you to reuse the app with different web services. Sample:

var pollingPlace = {
  // URL with {{POLLINGPLACEID}}, callback to showPoll
  serviceUrl: "http://example.com/getPollingPlaces?id={{POLLINGPLACEID}}&callback=showPoll",
  getFirst: function( polldata ){
    return polldata.features[0];
  },
  getID: function( poll ){
    return poll.attributes.POLLINGID;
  }
};
Something went wrong with that request. Please try again.