https://github.com/mdb/phl-poll-finder
A Node.js module that gets the polling center for a Philadelphia address.
https://github.com/mdb/phl-poll-finder
Last synced: 1 day ago
JSON representation
A Node.js module that gets the polling center for a Philadelphia address.
- Host: GitHub
- URL: https://github.com/mdb/phl-poll-finder
- Owner: mdb
- Created: 2012-11-12T19:46:08.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-05-26T01:15:19.000Z (about 13 years ago)
- Last Synced: 2025-04-17T16:55:30.625Z (about 1 year ago)
- Language: JavaScript
- Size: 113 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://travis-ci.org/mdb/phl-poll-finder)
# 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](http://twitter.com/mheadd)'s [phlfindpolls gist](https://gist.github.com/4015200).
The module uses Philadelphia's [311 Mobile Data Service API](http://services.phila.gov/ULRS311).
## 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'
}
}]
*/
});