{"id":42326677,"url":"https://github.com/dvrpc/high-injury-network","last_synced_at":"2026-01-27T13:10:59.346Z","repository":{"id":255381297,"uuid":"787632163","full_name":"dvrpc/high-injury-network","owner":"dvrpc","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-18T13:25:40.000Z","size":586,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-19T02:29:19.933Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PLpgSQL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dvrpc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-04-16T22:21:50.000Z","updated_at":"2025-04-18T13:25:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"692a1409-90ff-4b7d-9a57-716eb76d5297","html_url":"https://github.com/dvrpc/high-injury-network","commit_stats":null,"previous_names":["dvrpc/high-injury-network"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dvrpc/high-injury-network","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvrpc%2Fhigh-injury-network","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvrpc%2Fhigh-injury-network/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvrpc%2Fhigh-injury-network/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvrpc%2Fhigh-injury-network/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dvrpc","download_url":"https://codeload.github.com/dvrpc/high-injury-network/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvrpc%2Fhigh-injury-network/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28813298,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T12:25:15.069Z","status":"ssl_error","status_checked_at":"2026-01-27T12:25:05.297Z","response_time":168,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-27T13:10:58.934Z","updated_at":"2026-01-27T13:10:59.340Z","avatar_url":"https://github.com/dvrpc.png","language":"PLpgSQL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Regional High Injury Network (RHIN)\nData driven approach to identify road segments with KSI and Bicycle/Pedestrian crash trends over a 5 year time period.\n\n### Methodology\nThis project uses a sliding window approach to identify segments with high KSI and bike/ped crashes.  Each window is 0.5 miles long with a 0.01 mile sliding increment along along a route.\nWindows with 2 or more KSI or bike/ped crash locations are selected for the HIN.  Nearby windows who also meet the 2 or more KSI or bike/ped criteria are aggregated into larger segments if they are overlapping or within 2,500ft or 0.47343 miles.  The sliding window and crash threshold attributes can be adjusted using these variables in [run.py](run.py) (sliding window is dependant on **mile** units only)\n\n```\nwindowsize = 0.5 \nwindow_increment = 0.01 \ngap = 0.47343 \ncrashcount = 2\nstart_year = 2018\n```\n\n**Disclaimer:**\nWe utilize linear referencing measures from both DOT datasets to associate the crash locations to each road network.  PennDOT's crash data has incomplete road referencing data especially for local road crashes.  Because of this, a spatial snapping method is used to snap these crashes to their closest (within 10 meters) road network.  There will be some crashes that aren't included in this analysis because they don't include any type of location information.\n\n### Output \nKSI and Bike/Ped high injury network geojson files for each state in your output folder.\n\n### Requirements\n- PostgreSQL w/ PostGIS\n- Python 3.x\n- DVRPC ArcGIS Portal credentials to pull GIS data from ArcGIS Server\n- [.csv](./source/nj_lrs_access.csv) created with ArcGIS Overlay Route Events tool using LRS table and Limited Access table\n\n### Run\n1. Clone the repo\n    ``` cmd\n    git clone https://github.com/dvrpc/high-injury-network.git\n    ```\n2. Create a Python virtual environment with dependencies\n\n    Working in the repo directory from your terminal:\n    ```\n    cd \\high-injury-network\n    ```\n    - create new venv\n    ```cmd\n    python -m venv venv\n    ```\n    - activate venv\n    ```\n    .\\venv\\scripts\\activate\n    ```\n    - install requirements\n    ```\n    pip install -r requirements.txt\n    ```\n    - copy .env_sample and rename to .env\n    ```\n    copy .env_sample .env\n    ```\n    - edit .env environmental variables in VSCode and provide PostgreSQL/ArcGIS Portal credentials\n\n3. Edit variables in `run.py` for sliding window preferences or anything else you want adjusted\n\n4. Start the process\n    ```\n    python run.py\n    ```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdvrpc%2Fhigh-injury-network","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdvrpc%2Fhigh-injury-network","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdvrpc%2Fhigh-injury-network/lists"}