Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Advance Polling Places and Times for Fulton County, Georgia
var polling = {"type":"FeatureCollection","features":[{"type":"Feature","geometry":{"type":"Point","coordinates":[-84.492061,33.754541]},"properties":{"Location":"Adamsville Recreation Center","Address1":"3201 MLK Jr. Drive, SW","Address2":"","City":"Atlanta, GA 30311","WeekdayDates":"10/13/2014 - 10/31/2014","WeekdayTimes":"7:00 AM - 7:00 PM, M,Tu,W,Th,F","SaturdayDates":"10/18/2014, 10/25/2014","SaturdayTimes":"8:00 AM - 5:00 PM","SundayDates":"10/19/2014, 10/26/2014","SundayTimes":"12:00 PM - 5:00 PM"}},{"type":"Feature","geometry":{"type":"Point","coordinates":[-84.391737,33.8753238]},"properties":{"Location":"Chastian Park Gymnasium","Address1":"140 West Wieuca Road, NW","Address2":"","City":"Atlanta, GA 30342","WeekdayDates":"10/13/2014 - 10/31/2014","WeekdayTimes":"7:00 AM - 7:00 PM, M,Tu,W,Th,F","SaturdayDates":"10/18/2014, 10/25/2014","SaturdayTimes":"8:00 AM - 5:00 PM","SundayDates":"10/19/2014, 10/26/2014","SundayTimes":"12:00 PM - 5:00 PM"}},{"type":"Feature","geometry":{"type":"Point","coordinates":[-84.392639,33.7511493]},"properties":{"Location":"Fulton County Government Center","Address1":"130 Peachtree Street, SW","Address2":"Suite 2186","City":"Atlanta, GA 30303","WeekdayDates":"10/13/2014 - 10/31/2014","WeekdayTimes":"7:00 AM - 7:00 PM, M,Tu,W,Th,F","SaturdayDates":"10/18/2014, 10/25/2014","SaturdayTimes":"8:00 AM - 5:00 PM","SundayDates":"10/19/2014, 10/26/2014","SundayTimes":"12:00 PM - 5:00 PM"}},{"type":"Feature","geometry":{"type":"Point","coordinates":[-84.2655154,33.9773142]},"properties":{"Location":"Johns Creek Environmental Campus","Address1":"8100 Holcomb Bridge Road","Address2":"","City":"Alpharetta, GA 30022","WeekdayDates":"10/13/2014 - 10/31/2014","WeekdayTimes":"7:00 AM - 7:00 PM, M,Tu,W,Th,F","SaturdayDates":"10/18/2014, 10/25/2014","SaturdayTimes":"8:00 AM - 5:00 PM","SundayDates":"10/19/2014, 10/26/2014","SundayTimes":"12:00 PM - 5:00 PM"}},{"type":"Feature","geometry":{"type":"Point","coordinates":[-84.3627312,33.9657187]},"properties":{"Location":"North Fulton Annex","Address1":"7741 Roswell Road, Suite 224","Address2":"","City":"Atlanta, GA 30350","WeekdayDates":"10/13/2014 - 10/31/2014","WeekdayTimes":"7:00 AM - 7:00 PM, M,Tu,W,Th,F","SaturdayDates":"10/18/2014, 10/25/2014","SaturdayTimes":"8:00 AM - 5:00 PM","SundayDates":"10/19/2014, 10/26/2014","SundayTimes":"12:00 PM - 5:00 PM"}},{"type":"Feature","geometry":{"type":"Point","coordinates":[-84.4254094,33.8451648]},"properties":{"Location":"Northside Branch Library","Address1":"3295 Northside Parkway","Address2":"","City":"Atlanta, GA 30327","WeekdayDates":"10/13/2014 - 10/31/2014","WeekdayTimes":"7:00 AM - 7:00 PM, M,Tu,W,Th,F","SaturdayDates":"2014/10/25","SaturdayTimes":"8:00 AM - 5:00 PM","SundayDates":"2014/10/26","SundayTimes":"12:00 PM - 5:00 PM"}},{"type":"Feature","geometry":{"type":"Point","coordinates":[-84.2095934,34.0645505]},"properties":{"Location":"Ocee Library","Address1":"5090 Abbotts Bridge Road","Address2":"","City":"Alpharetta, GA 30005","WeekdayDates":"10/13/2014 - 10/31/2014","WeekdayTimes":"7:00 AM - 7:00 PM, M,Tu,W,Th,F","SaturdayDates":"10/18/2014, 10/25/2014","SaturdayTimes":"8:00 AM - 5:00 PM","SundayDates":"10/19/2014, 10/26/2014","SundayTimes":"12:00 PM - 5:00 PM"}},{"type":"Feature","geometry":{"type":"Point","coordinates":[-84.2947595,34.0725744]},"properties":{"Location":"Roswell Branch Library","Address1":"115 Norcross Street","Address2":"","City":"Roswell, GA 30075","WeekdayDates":"10/13/2014 - 10/31/2014","WeekdayTimes":"7:00 AM - 7:00 PM, M,Tu,W,Th,F","SaturdayDates":"2014/10/25","SaturdayTimes":"8:00 AM - 5:00 PM","SundayDates":"2014/10/26","SundayTimes":"12:00 PM - 5:00 PM"}},{"type":"Feature","geometry":{"type":"Point","coordinates":[-84.5498808,33.6014156]},"properties":{"Location":"South Fulton Annex","Address1":"5600 Stonewall Tell Road","Address2":"Room 108","City":"College Park, GA 30349","WeekdayDates":"10/13/2014 - 10/31/2014","WeekdayTimes":"7:00 AM - 7:00 PM, M,Tu,W,Th,F","SaturdayDates":"10/18/2014, 10/25/2014","SaturdayTimes":"8:00 AM - 5:00 PM","SundayDates":"10/19/2014, 10/26/2014","SundayTimes":"12:00 PM - 5:00 PM"}},{"type":"Feature","geometry":{"type":"Point","coordinates":[-84.450878,33.655064]},"properties":{"Location":"College Park Historical Building","Address1":"3675 Auditorium Way","Address2":"","City":"College Park, GA 30337","WeekdayDates":"10/20/2014 - 10/31/2014","WeekdayTimes":"7:00 AM - 7:00 PM, M,Tu,W,Th,F","SaturdayDates":"2014/10/25","SaturdayTimes":"8:00 AM - 5:00 PM","SundayDates":"2014/10/26","SundayTimes":"12:00 PM - 5:00 PM"}},{"type":"Feature","geometry":{"type":"Point","coordinates":[-84.440535,33.680195]},"properties":{"Location":"East Point Branch Library","Address1":"2757 Main Street","Address2":"","City":"East Point, GA 30344","WeekdayDates":"10/20/2014 - 10/31/2014","WeekdayTimes":"7:00 AM - 7:00 PM, M,Tu,W,Th,F","SaturdayDates":"2014/10/25","SaturdayTimes":"8:00 AM - 5:00 PM","SundayDates":"2014/10/26","SundayTimes":"12:00 PM - 5:00 PM"}},{"type":"Feature","geometry":{"type":"Point","coordinates":[-84.5846062,33.5669263]},"properties":{"Location":"Fairburn Library","Address1":"60 Valley Drive","Address2":"","City":"Fairburn, GA 30213","WeekdayDates":"10/20/2014 - 10/31/2014","WeekdayTimes":"7:00 AM - 7:00 PM, M,Tu,W,Th,F","SaturdayDates":"2014/10/25","SaturdayTimes":"8:00 AM - 5:00 PM","SundayDates":"2014/10/26","SundayTimes":"12:00 PM - 5:00 PM"}},{"type":"Feature","geometry":{"type":"Point","coordinates":[-84.3796499,33.7367318]},"properties":{"Location":"Georgia Hills Neighborhood Facility","Address1":"250 Georgia Avenue, SE","Address2":"","City":"Atlanta , GA 30312","WeekdayDates":"10/20/2014 - 10/31/2014","WeekdayTimes":"7:00 AM - 7:00 PM, M,Tu,W,Th,F","SaturdayDates":"2014/10/25","SaturdayTimes":"8:00 AM - 5:00 PM","SundayDates":"2014/10/26","SundayTimes":"12:00 PM - 5:00 PM"}},{"type":"Feature","geometry":{"type":"Point","coordinates":[-84.2227533,34.0147999]},"properties":{"Location":"Northeast/Spruill Oaks Library","Address1":"9560 Spruill Road","Address2":"","City":"John Creeks, GA 30022","WeekdayDates":"10/20/2014 - 10/31/2014","WeekdayTimes":"7:00 AM - 7:00 PM, M,Tu,W,Th,F","SaturdayDates":"2014/10/25","SaturdayTimes":"8:00 AM - 5:00 PM","SundayDates":"2014/10/26","SundayTimes":"12:00 PM - 5:00 PM"}},{"type":"Feature","geometry":{"type":"Point","coordinates":[-84.3740999,33.9244086]},"properties":{"Location":"Sandy Springs Branch Library","Address1":"395 Mount Vernon Highway, NE","Address2":"","City":"Sandy Springs, GA 30328","WeekdayDates":"10/20/2014 - 10/31/2014","WeekdayTimes":"7:00 AM - 7:00 PM, M,Tu,W,Th,F","SaturdayDates":"2014/10/25","SaturdayTimes":"8:00 AM - 5:00 PM","SundayDates":"2014/10/26","SundayTimes":"12:00 PM - 5:00 PM"}},{"type":"Feature","geometry":{"type":"Point","coordinates":[-84.5415544,33.7296843]},"properties":{"Location":"Southwest Arts Center","Address1":"915 New Hope Road, SW","Address2":"","City":"Atlanta, GA 30331","WeekdayDates":"10/20/2014 - 10/31/2014","WeekdayTimes":"7:00 AM - 7:00 PM, M,Tu,W,Th,F","SaturdayDates":"2014/10/25","SaturdayTimes":"8:00 AM - 5:00 PM","SundayDates":"2014/10/26","SundayTimes":"12:00 PM - 5:00 PM"}},{"type":"Feature","geometry":{"type":"Point","coordinates":[-84.2989111,34.0768876]},"properties":{"Location":"The Milton Center","Address1":"86 School Drive","Address2":"","City":"Alpharetta, GA 30004","WeekdayDates":"10/20/2014 - 10/31/2014","WeekdayTimes":"7:00 AM - 7:00 PM, M,Tu,W,Th,F","SaturdayDates":"2014/10/25","SaturdayTimes":"8:00 AM - 5:00 PM","SundayDates":"2014/10/26","SundayTimes":"12:00 PM - 5:00 PM"}},{"type":"Feature","geometry":{"type":"Point","coordinates":[-84.4237409,33.7540521]},"properties":{"Location":"Washington Park Library","Address1":"1116 MLK JR. Drive, SW","Address2":"","City":"Atlanta, GA 30314","WeekdayDates":"10/20/2014 - 10/31/2014","WeekdayTimes":"7:00 AM - 7:00 PM, M,Tu,W,Th,F","SaturdayDates":"2014/10/25","SaturdayTimes":"8:00 AM - 5:00 PM","SundayDates":"2014/10/26","SundayTimes":"12:00 PM - 5:00 PM"}},{"type":"Feature","geometry":{"type":"Point","coordinates":[-84.5284217,33.6331104]},"properties":{"Location":"Welcome All Park Recreation Center","Address1":"4255 Will Lee Road","Address2":"","City":"College Park, GA 30349","WeekdayDates":"10/20/2014 - 10/31/2014","WeekdayTimes":"7:00 AM - 7:00 PM, M,Tu,W,Th,F","SaturdayDates":"2014/10/25","SaturdayTimes":"8:00 AM - 5:00 PM","SundayDates":"2014/10/26","SundayTimes":"12:00 PM - 5:00 PM"}}]}
<!DOCTYPE html>
<meta charset="utf-8">
<html>
<head profile="http://www.w3.org/2005/10/profile">
<title>Advance Polling Places</title>
<link rel="icon"
type="image/png"
href="http://mollietaylor.com/favicon.png">
<!-- Leaflet -->
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.css" />
<!--[if lte IE 8]>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.ie.css" />
<![endif]-->
<script src="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.js"></script>
<!-- Data -->
<script type="text/javascript" src="advance-polling-places.js"></script>
<style type="text/css">
html, body{
padding: 0;
margin: 0 auto;
height: 100%;
width: 100%;
}
#map {
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<div id="map"></div>
<script type="text/javascript">
var map = L.map('map').setView([33.76,-84.365], 10);
</script>
<script type="text/javascript" src="map.js"></script>
</body>
</html>
window.onload = function () {
// Advance Voting Polling Places
function onEachPolling(feature, layer) {
layer.bindPopup(feature.properties.Location +
"<br>" + feature.properties.Address1 +
"<br>" + feature.properties.Address2 +
"<br>" + feature.properties.City +
"<br><br>Weekdays: " +
"<br>" + feature.properties.WeekdayDates +
"<br>" + feature.properties.WeekdayTimes +
"<br><br>Saturdays: " +
"<br>" + feature.properties.SaturdayDates +
"<br>" + feature.properties.SaturdayTimes +
"<br><br>Sundays: " +
"<br>" + feature.properties.SundayDates +
"<br>" + feature.properties.SundayTimes);
};
var pollingLayer = L.geoJson(polling, {
onEachFeature: onEachPolling
}).addTo(map);
// map
L.tileLayer('http://otile4.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.png', {
attribution: '<a href="http://proximityviz.com/">Proximity Viz</a> | Tiles &copy; <a href="http://www.mapquest.com/" target="_blank">MapQuest</a> <img src="http://developer.mapquest.com/content/osm/mq_logo.png" />',
maxZoom: 18
}).addTo(map);
};
@mollietaylor

This comment has been minimized.

Copy link
Owner Author

commented Oct 9, 2014

Data from http://sos.ga.gov/elections/countycontacts/advancevotingdisplay.aspx with coordinates from Google Maps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.