A web API to geographic boundaries loaded from shapefiles, packaged as a Django app.
Project description
Represent Boundaries is a web API to geographic areas, like electoral districts. It allows you to easily find the areas that cover your users’ locations to display location-based information, like profiles of electoral candidates.
It’s a Django app that’s easy to integrate into an existing project or to deploy on its own. It uses a simple file format to control how data is loaded into the API, and it provides a command-line tool to easily manage data.
Notable uses include:
Represent helps people find the elected officials and electoral districts for any Canadian address or postal code, at any level of government.
OpenStates.org allows anyone to discover more about lawmaking in their state and uses Represent Boundaries to help them find their state legislators.
GovTrack.us helps track the activities of the United States Congress and uses Represent Boundaries to help people find their members of Congress.
ANCFinder.org helps Washington, DC residents discover and participate in their Advisory Neighborhood Commissions.
Public instances include:
represent.opennorth.ca for Canada: source code and data files
gis.govtrack.us for the US: source code
Documentation
Testing
createdb represent_boundaries_test psql represent_boundaries_test -c 'CREATE EXTENSION postgis;' env DJANGO_SETTINGS_MODULE=settings django-admin migrate --noinput python runtests.py
Acknowledgements
Represent Boundaries is based on the Chicago Tribune’s django-boundaryservice.
Released under the MIT license
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file represent_boundaries-0.10.0.tar.gz
.
File metadata
- Download URL: represent_boundaries-0.10.0.tar.gz
- Upload date:
- Size: 47.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5658b8b42c9afb860aa07652d138970f110b101cea7a4c5b822bbdc2bd56ffa4 |
|
MD5 | 1bfcd63e22b224994efc91a4059b4d6a |
|
BLAKE2b-256 | f4692bfb1a536af6c40a4c0b21aba380c180a3a0cc244bf732711b544a58d6e8 |
File details
Details for the file represent_boundaries-0.10.0-py3-none-any.whl
.
File metadata
- Download URL: represent_boundaries-0.10.0-py3-none-any.whl
- Upload date:
- Size: 73.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d62f8b9deff1a2b1919175702a108d11805c26a6bc00c48420800f19125a929f |
|
MD5 | 78333e71d3f349dceffb9833b96e6f76 |
|
BLAKE2b-256 | f81a648b7abfb039a3944cf7f1c54b4fce59e8777699f8a519277625cf213c7a |