Skip to content

Commit f070614

Browse files
committed
Create separate hot spot maps for pedestrians and cyclists.
1) Updated notebook with new helper functions and separate pedestrian and cyclist maps. 2) Updated hotspots section of website.
1 parent 625728f commit f070614

20 files changed

+13847
-10497
lines changed

4-dangerous-locations.ipynb

+5,112-3,477
Large diffs are not rendered by default.

docs/_data/navigation.yaml

+11-6
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,19 @@
1717
- name: Hot Spots
1818
link: /content/hotspots
1919
dropdown:
20-
- name: Dangerous Locations
21-
link: /content/hotspots/points_serious
22-
- name: Dangerous Locations for Pedestrians / Cyclists
23-
link: /content/hotspots/points_non_motor
2420
- name: Dangerous Areas
2521
link: /content/hotspots/clusters_serious
26-
- name: Dangerous Areas for Pedestrians / Cyclists
27-
link: /content/hotspots/clusters_non_motor
22+
- name: Dangerous Areas for Pedestrians
23+
link: /content/hotspots/clusters_pedestrian
24+
- name: Dangerous Areas for Cyclists
25+
link: /content/hotspots/clusters_cyclist
26+
- name: Dangerous Points
27+
link: /content/hotspots/points_serious
28+
- name: Dangerous Points Pedestrians
29+
link: /content/hotspots/points_pedestrian
30+
- name: Dangerous Points Cyclists
31+
link: /content/hotspots/points_cyclist
32+
2833
- name: Trends
2934
link: /content/trends
3035
dropdown:

docs/_includes/click.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<em>Click on icons for more information</em>
1+
Click on icons for more information

docs/_includes/click_cc.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<em>Click on individual districts for council member contact information</em>
1+
Click on individual districts for council member contact information

docs/_includes/click_choro.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<em>Click or hover on map for more information</em>
1+
Click or hover on map for more information

docs/_includes/click_cluster.html

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Click on icons for more information. Cluster membership can be seen by clicking on individual icons.

docs/_includes/dangerous_area.html

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Dangerous areas are multi-block clusters of collisions with injuries or deaths. Clustering may reveal high-risk areas that would be missed by focusing on single points (like intersections) with many collisions. Clusters were identified by tuning a density-based clustering algorithm, <a href="https://scikit-learn.org/stable/modules/clustering.html#dbscan">Density-Based Spatial Clustering of Applications with Noise (DBSCAN)</a>.

docs/content/hotspots.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
---
22
layout: page
33
title: Vehicle Collision Hotspots in New York City
4-
description: Maps of high-density vehicle collisions (hotspots) in New York City (NYC)
4+
description: Maps of locations with a high-density of vehicle collisions (hotspots) in New York City (NYC)
55
hide_hero: true
66
---
77

88
# Hotspot Maps
99
Identifying concentrations of collisions
10-
- [Dangerous Locations]({{ "/content/hotspots/points_serious" | relative_url }})
11-
- [Dangerous Locations for Pedestrians]({{ "/content/hotspots/points_non_motor" | relative_url }})
1210
- [Dangerous Areas]({{ "/content/hotspots/clusters_serious" | relative_url }})
13-
- [Dangerous Areas for Pedestrians]({{ "/content/hotspots/clusters_non_motor" | relative_url }})
11+
- [Dangerous Areas for Pedestrians]({{ "/content/hotspots/clusters_pedestrian" | relative_url }})
12+
- [Dangerous Areas for Cyclists]({{ "/content/hotspots/clusters_cyclist" | relative_url }})
13+
- [Dangerous Points]({{ "/content/hotspots/points_serious" | relative_url }})
14+
- [Dangerous Points for Pedestrians]({{ "/content/hotspots/points_pedestrian" | relative_url }})
15+
- [Dangerous Points for Cyclists]({{ "/content/hotspots/points_cyclist" | relative_url }})
1416

15-
_Dangerous locations are single points where collisions are common_
16-
17-
_Dangerous areas are clusters identified by clustering algorithm_
17+
_Dangerous points are frequently intersections_
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
layout: page
3+
title: Dangerous Areas for Cyclists in New York City
4+
description: Interactive map of clusters of cyclist injuries and deaths from vehicle collisions in New York City (NYC)
5+
hide_hero: true
6+
---
7+
# Dangerous Areas for Cyclists
8+
{% include dangerous_area.html %}
9+
10+
{% include visit_github.html %}
11+
12+
{% include slow_load.html %}
13+
14+
{% include click_cluster.html %}
15+
<iframe src="clusters_cyclist_map.html" title="Marker cluster map identifying areas with a high density of collisions with cyclists in New York City"></iframe>
16+
{% include map_data_range_full.html %}

docs/content/hotspots/clusters_cyclist_map.html

+89
Large diffs are not rendered by default.

docs/content/hotspots/clusters_non_motor.md

-16
This file was deleted.

docs/content/hotspots/clusters_non_motor_map.html

-89
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
layout: page
3+
title: Dangerous Areas for Pedestrians in New York City
4+
description: Interactive map of clusters of pedestrians injuries and deaths from vehicle collisions in New York City (NYC)
5+
hide_hero: true
6+
---
7+
# Dangerous Areas for Pedestrians
8+
{% include dangerous_area.html %}
9+
10+
{% include visit_github.html %}
11+
12+
{% include slow_load.html %}
13+
14+
{% include click_cluster.html %}
15+
<iframe src="clusters_pedestrian_map.html" title="Marker cluster map identifying areas with a high density of collisions with pedestrians in New York City"></iframe>
16+
{% include map_data_range_full.html %}

docs/content/hotspots/clusters_pedestrian_map.html

+89
Large diffs are not rendered by default.

docs/content/hotspots/clusters_serious.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ description: Interactive map of clusters of injuries and deaths from vehicle col
55
hide_hero: true
66
---
77
# Dangerous Areas
8-
Dangerous areas are clusters of collisions with a high number of injuries and deaths from vehicle collisions. Clusters were identified by tuning a density-based clustering algorithm.
8+
{% include dangerous_area.html %}
99

1010
{% include visit_github.html %}
1111

1212
{% include slow_load.html %}
1313

14-
{% include click.html %}
14+
{% include click_cluster.html %}
1515
<iframe src="clusters_serious_map.html" title="Marker cluster map identifying areas with a high density of serious collisions in New York City"></iframe>
1616
{% include map_data_range_full.html %}

docs/content/hotspots/clusters_serious_map.html

+10-10
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)