Note: This repository is an off-shoot of the following repository: https://github.com/parcheesime/geohub-datacollection. It is issue 118 Create District Types for Hack for L.A. Data Science CoP.
This project collects district boundary files for various political and administrative districts within Los Angeles County.
The data is converted into both raw JSON and GeoJSON formats for easy use in civic tech projects.
The processed data will be contributed to Hack for LA.
For questions or collaboration, reach out on GitHub: @parcheesime.
- Assembly
- Senate
- Neighborhood Councils
- Supervisors
- Congressional
- City Clerk (BIDs)
- City Council
The data collection process is facilitated using the GeoHub LA County Website and related ArcGIS APIs.
- Authentication: No key required.
- Requesting Data: Python script sends requests to API endpoints for each district.
- Data Processing: Responses are saved in two formats:
- Raw ArcGIS JSON (
district.json) - GeoJSON (
district.geojson)
- Raw ArcGIS JSON (
- Data Storage: Output files are stored in
shapefiles_output/. - Automation: A GitHub Actions workflow will be configured to run this process on a weekly or monthly basis via update_shapefiles.yml.
geohubLA_data_collection/ │ ├── main.py # Script to fetch and save district shapefiles ├── shapefiles_output/ # Folder where JSON and GeoJSON outputs are stored ├── example_usage.ipynb # Jupyter notebook demo of loading and plotting data ├── requirements.txt # Python dependencies └── README.md # Project documentation
git clone https://github.com/<your-org>/geohubLA_data_collection.git
cd geohubLA_data_collectionpython3 -m venv myenv
source myenv/bin/activatepip install -r requirements.txtpython main.py
jupyter notebook example_usage.ipynb