Skip to content

mdb/phl-poll-finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

phl-poll-finder

NOTE: The Philadelphia PollingPlaces API is no longer active, hence rendering this module somewhat useless, at least for the time being. I'll research other options.

A Node.js module for finding the polling center for a Philadelphia address.

phl-poll-finder is based on Mark Headd's phlfindpolls gist.

The module uses Philadelphia's 311 Mobile Data Service API.

Getting Started

Install phl-poll-finder:

npm install phl-poll-finder

Require and instantiate phl-poll-finder:

var phlPollFinder = require('phl-poll-finder')();

Example Usage

Get latitude and longitude coordinates for a Philadelpia address:

phlPollFinder.find('1500 market street', function (d) {
  console.log(d);

  /* Example response:
    [{
      attributes: {
        WARD_1: 8,
        DIVISION_1: 15,
        POLLING_PL: 'THE PHOENIX APTS',
        ADDRESS: '1600 ARCH STREET',
        PARKING_AC: 'L',
        BUILDING_A: 'M'
      }
    }]
  */
});

About

A Node.js module that gets the polling center for a Philadelphia address.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published