Represent
A simple wrapper for the district and politician data from Represent.
Usage
npm install represent
Boundary Sets
Example response: http://represent.opennorth.ca/boundary-sets/federal-electoral-districts/?format=apibrowser
represent;
Boundaries
Example response: http://represent.opennorth.ca/boundaries/toronto-wards/?format=apibrowser
represent;
From latitude and longitude
Example response: http://represent.opennorth.ca/boundaries/?contains=45.524,-73.596&format=apibrowser
represent;
Postal Codes
Example response: http://represent.opennorth.ca/postcodes/L5G4L3/?format=apibrowser
represent;
Representatives from latitude and longitude
Example response: http://represent.opennorth.ca/representatives/?point=45.524,-73.596&format=apibrowser
represent;
Todos
- add caching
License
MIT licensed. See LICENSE file.