-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4c1795d
commit 936e49a
Showing
80 changed files
with
681 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule oswm_codebase
updated
6 files
+71 −14 | dashboard/statistics_funcs.py | |
+58 −53 | dashboard/statistics_generation.py | |
+115 −73 | dashboard/statistics_specs.py | |
+17 −2 | functions.py | |
+227 −5 | other/for_future/path_finder.html | |
+1 −0 | webmap/webmap_base.html |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
|
||
<head> | ||
|
||
|
||
<div class="topnav" id="stTopnav"> | ||
<a href="https://kauevestena.github.io/opensidewalkmap_beta/" class="active">Go to Node Home</a> | ||
<a href="https://kauevestena.github.io/opensidewalkmap_beta/statistics/sidewalks/sidewalks_smoothness_x_surface.html">Sidewalks Charts</a> | ||
<a href="https://kauevestena.github.io/opensidewalkmap_beta/statistics/crossings/crossing_types.html">Crossings Charts</a> | ||
<a href="https://kauevestena.github.io/opensidewalkmap_beta/statistics/kerbs/kerbs_x_paving_x_wheelchair.html">Kerbs Charts</a> | ||
<a href="https://kauevestena.github.io/opensidewalkmap_beta/statistics/other_footways/other_footways_subcategory.html">Other Footways Charts</a> | ||
<a href="https://kauevestena.github.io/opensidewalkmap_beta/statistics/all_data/all_data_category.html">All Data Charts</a> | ||
|
||
<a href="javascript:void(0);" class="icon" onclick="responsiveTopNav()"> | ||
<i class="fa fa-bars"></i> | ||
</a> | ||
</div> | ||
|
||
<div class="sidebar"> | ||
<a href="https://kauevestena.github.io/opensidewalkmap_beta/statistics/all_data/all_data_category.html">Layer Feature Count</a> | ||
<a href="https://kauevestena.github.io/opensidewalkmap_beta/statistics/all_data/all_data_surface.html">Surface Type</a> | ||
<a href="https://kauevestena.github.io/opensidewalkmap_beta/statistics/all_data/all_data_smoothness.html">Smoothness Condition</a> | ||
<a href="https://kauevestena.github.io/opensidewalkmap_beta/statistics/all_data/all_data_tactile_paving.html">Tactile Paving Presence</a> | ||
<a href="https://kauevestena.github.io/opensidewalkmap_beta/statistics/all_data/all_data_lit.html">Lighting Status</a> | ||
<a href="https://kauevestena.github.io/opensidewalkmap_beta/statistics/all_data/all_data_traffic_calming.html">Traffic Calming Status</a> | ||
<a href="https://kauevestena.github.io/opensidewalkmap_beta/statistics/all_data/all_data_wheelchair_tag.html">wheelchair=*</a> | ||
<a href="https://kauevestena.github.io/opensidewalkmap_beta/statistics/all_data/all_data_age.html">Update Age</a> | ||
<a href="https://kauevestena.github.io/opensidewalkmap_beta/statistics/all_data/all_data_n_revs.html">Number of Revisions</a> | ||
</div> | ||
|
||
|
||
|
||
<link rel="stylesheet" href="https://kauevestena.github.io/oswm_codebase/assets/styles/stats_styles.css"> | ||
<script src="https://kauevestena.github.io/oswm_codebase/assets/webscripts/stats_funcs.js"></script> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> | ||
|
||
|
||
<title>OSWM Dashboard</title> | ||
|
||
<link rel="icon" type="image/x-icon" href="https://kauevestena.github.io/oswm_codebase/assets/homepage/favicon_homepage.png"> | ||
|
||
|
||
|
||
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/vega@5"></script> | ||
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected]"></script> | ||
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/vega-embed@6"></script> | ||
</head> | ||
<body> | ||
<div id="vis"></div> | ||
<script> | ||
(function(vegaEmbed) { | ||
var spec = {"config": {"view": {"continuousWidth": 300, "continuousHeight": 300}, "title": {"fontSize": 24}}, "data": {"name": "data-da1735782a0897d6676cff9dc88b088e"}, "mark": {"type": "bar"}, "encoding": {"color": {"field": "length(km)", "type": "quantitative"}, "tooltip": [{"field": "feature count", "type": "quantitative"}, {"field": "category type", "type": "nominal"}, {"field": "length(km)", "type": "quantitative"}], "x": {"field": "category type", "sort": "-y", "type": "nominal"}, "y": {"field": "count", "type": "quantitative"}}, "height": 300, "params": [{"name": "include_filter_out_opt", "bind": {"input": "checkbox", "name": "Include \"?\" (Unknown)"}, "value": true}, {"name": "param_19", "select": {"type": "interval", "encodings": ["x", "y"]}, "bind": "scales"}], "title": "All-Category Layers Feature Count", "transform": [{"filter": "include_filter_out_opt || datum['category type'] != '?'"}], "width": 650, "$schema": "https://vega.github.io/schema/vega-lite/v5.17.0.json", "datasets": {"data-da1735782a0897d6676cff9dc88b088e": [{"category type": "crossings", "length(km)": 22.99647500191592, "feature count": 1967, "count": 1967}, {"category type": "informal_footways", "length(km)": 32.45945723072023, "feature count": 180, "count": 180}, {"category type": "kerbs", "length(km)": 0.0, "feature count": 2759, "count": 2759}, {"category type": "main_footways", "length(km)": 425.60195017291943, "feature count": 5305, "count": 5305}, {"category type": "pedestrian_areas", "length(km)": 19.8143499463349, "feature count": 49, "count": 49}, {"category type": "potential_footways", "length(km)": 100.00082363560861, "feature count": 741, "count": 741}, {"category type": "sidewalks", "length(km)": 302.7351506126961, "feature count": 7890, "count": 7890}, {"category type": "stairways", "length(km)": 4.639557590552573, "feature count": 315, "count": 315}]}}; | ||
var embedOpt = {"mode": "vega-lite"}; | ||
|
||
function showError(el, error){ | ||
el.innerHTML = ('<div style="color:red;">' | ||
+ '<p>JavaScript Error: ' + error.message + '</p>' | ||
+ "<p>This usually means there's a typo in your chart specification. " | ||
+ "See the javascript console for the full traceback.</p>" | ||
+ '</div>'); | ||
throw error; | ||
} | ||
const el = document.getElementById('vis'); | ||
vegaEmbed("#vis", spec, embedOpt) | ||
.catch(error => showError(el, error)); | ||
})(vegaEmbed); | ||
|
||
</script> | ||
<h4 style="padding-left: 14%;font-weight: normal;font-family: sans-serif;"> - Explanation: This chart allows you to visualize the number of features in each layer of the data, featuring also the length of each in different shades. Keep in mind that kerbs have no length and pedestrian areas have their perimeter represented. </h4> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
|
||
<head> | ||
|
||
|
||
<div class="topnav" id="stTopnav"> | ||
<a href="https://kauevestena.github.io/opensidewalkmap_beta/" class="active">Go to Node Home</a> | ||
<a href="https://kauevestena.github.io/opensidewalkmap_beta/statistics/sidewalks/sidewalks_smoothness_x_surface.html">Sidewalks Charts</a> | ||
<a href="https://kauevestena.github.io/opensidewalkmap_beta/statistics/crossings/crossing_types.html">Crossings Charts</a> | ||
<a href="https://kauevestena.github.io/opensidewalkmap_beta/statistics/kerbs/kerbs_x_paving_x_wheelchair.html">Kerbs Charts</a> | ||
<a href="https://kauevestena.github.io/opensidewalkmap_beta/statistics/other_footways/other_footways_subcategory.html">Other Footways Charts</a> | ||
<a href="https://kauevestena.github.io/opensidewalkmap_beta/statistics/all_data/all_data_category.html">All Data Charts</a> | ||
|
||
<a href="javascript:void(0);" class="icon" onclick="responsiveTopNav()"> | ||
<i class="fa fa-bars"></i> | ||
</a> | ||
</div> | ||
|
||
<div class="sidebar"> | ||
<a href="https://kauevestena.github.io/opensidewalkmap_beta/statistics/all_data/all_data_category.html">Layer Feature Count</a> | ||
<a href="https://kauevestena.github.io/opensidewalkmap_beta/statistics/all_data/all_data_surface.html">Surface Type</a> | ||
<a href="https://kauevestena.github.io/opensidewalkmap_beta/statistics/all_data/all_data_smoothness.html">Smoothness Condition</a> | ||
<a href="https://kauevestena.github.io/opensidewalkmap_beta/statistics/all_data/all_data_tactile_paving.html">Tactile Paving Presence</a> | ||
<a href="https://kauevestena.github.io/opensidewalkmap_beta/statistics/all_data/all_data_lit.html">Lighting Status</a> | ||
<a href="https://kauevestena.github.io/opensidewalkmap_beta/statistics/all_data/all_data_traffic_calming.html">Traffic Calming Status</a> | ||
<a href="https://kauevestena.github.io/opensidewalkmap_beta/statistics/all_data/all_data_wheelchair_tag.html">wheelchair=*</a> | ||
<a href="https://kauevestena.github.io/opensidewalkmap_beta/statistics/all_data/all_data_age.html">Update Age</a> | ||
<a href="https://kauevestena.github.io/opensidewalkmap_beta/statistics/all_data/all_data_n_revs.html">Number of Revisions</a> | ||
</div> | ||
|
||
|
||
|
||
<link rel="stylesheet" href="https://kauevestena.github.io/oswm_codebase/assets/styles/stats_styles.css"> | ||
<script src="https://kauevestena.github.io/oswm_codebase/assets/webscripts/stats_funcs.js"></script> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> | ||
|
||
|
||
<title>OSWM Dashboard</title> | ||
|
||
<link rel="icon" type="image/x-icon" href="https://kauevestena.github.io/oswm_codebase/assets/homepage/favicon_homepage.png"> | ||
|
||
|
||
|
||
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/vega@5"></script> | ||
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected]"></script> | ||
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/vega-embed@6"></script> | ||
</head> | ||
<body> | ||
<div id="vis"></div> | ||
<script> | ||
(function(vegaEmbed) { | ||
var spec = {"config": {"view": {"continuousWidth": 300, "continuousHeight": 300}, "title": {"fontSize": 24}}, "data": {"name": "data-280d1240d570213eb9d33b06e1e2c137"}, "mark": {"type": "bar"}, "encoding": {"color": {"field": "feature count", "type": "quantitative"}, "tooltip": [{"field": "lit type", "type": "nominal"}, {"field": "length(km)", "type": "quantitative"}, {"field": "feature count", "type": "quantitative"}], "x": {"field": "lit type", "sort": "-y", "type": "nominal"}, "y": {"field": "length(km)", "type": "quantitative"}}, "height": 300, "params": [{"name": "include_filter_out_opt", "bind": {"input": "checkbox", "name": "Include \"?\" (Unknown)"}, "value": true}, {"name": "param_23", "select": {"type": "interval", "encodings": ["x", "y"]}, "bind": "scales"}], "title": "All-Category Lighting Status", "transform": [{"filter": "include_filter_out_opt || datum['lit type'] != '?'"}], "width": 650, "$schema": "https://vega.github.io/schema/vega-lite/v5.17.0.json", "datasets": {"data-280d1240d570213eb9d33b06e1e2c137": [{"lit type": "?", "feature count": 18225, "length(km)": 827.4720884837527}, {"lit type": "no", "feature count": 124, "length(km)": 19.594728054086275}, {"lit type": "yes", "feature count": 908, "length(km)": 65.59056592103607}]}}; | ||
var embedOpt = {"mode": "vega-lite"}; | ||
|
||
function showError(el, error){ | ||
el.innerHTML = ('<div style="color:red;">' | ||
+ '<p>JavaScript Error: ' + error.message + '</p>' | ||
+ "<p>This usually means there's a typo in your chart specification. " | ||
+ "See the javascript console for the full traceback.</p>" | ||
+ '</div>'); | ||
throw error; | ||
} | ||
const el = document.getElementById('vis'); | ||
vegaEmbed("#vis", spec, embedOpt) | ||
.catch(error => showError(el, error)); | ||
})(vegaEmbed); | ||
|
||
</script> | ||
<h4 style="padding-left: 14%;font-weight: normal;font-family: sans-serif;"> - Explanation: This chart allows you to visualize the different lighting (<a href='https://wiki.openstreetmap.org/wiki/Key:lit'>lit</a>) conditions in the whole data. </h4> | ||
</body> | ||
</html> |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.