Skip to main content

A web API to geographic boundaries loaded from shapefiles, packaged as a Django app.

Project description

PyPI version Build Status Coverage Status

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:

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

represent_boundaries-0.10.1.tar.gz (47.6 kB view details)

Uploaded Source

Built Distribution

represent_boundaries-0.10.1-py3-none-any.whl (72.9 kB view details)

Uploaded Python 3

File details

Details for the file represent_boundaries-0.10.1.tar.gz.

File metadata

  • Download URL: represent_boundaries-0.10.1.tar.gz
  • Upload date:
  • Size: 47.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for represent_boundaries-0.10.1.tar.gz
Algorithm Hash digest
SHA256 e2348d1ddba5efa9b97ebd0c9130abcf24595e0b151ad7b11d5707b71b487dcd
MD5 538149e2f91ef3987d429532d69ff7d2
BLAKE2b-256 d92824a5cfe4c4ae0a50fda8691752e6cc680b10395622578903770dec2f3ebc

See more details on using hashes here.

File details

Details for the file represent_boundaries-0.10.1-py3-none-any.whl.

File metadata

File hashes

Hashes for represent_boundaries-0.10.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f37df057e7c34a5e9d0af9986b6eaa8bb6d7c35c31810a0d9fec7929a58e722a
MD5 efc425a97031774e0196e4712142621b
BLAKE2b-256 fb74f0c906c68167058d7cb34a58d35ed9d841d86ca2edb90d65c454fb38608b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page