-
Notifications
You must be signed in to change notification settings - Fork 3
bambam-modal-metrics crate #169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
7836a09
Migrate modal metric computations to a new crate
admrtin e48ecb8
Code commenting and readability tweaks
admrtin 7133f86
crate publish script update
admrtin 21a59ce
cargo sort
admrtin 91402bd
round mph before casting to i32
admrtin c0bb8dd
fmt
admrtin 5a6379f
Cargo updates and readme
admrtin cbd18d0
format
admrtin e00c436
format #2
admrtin b4f30f6
Update publish crates script and remove references to "ways" in docst…
admrtin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,23 @@ | ||
| [package] | ||
| name = "bambam-modal-metrics" | ||
| edition = "2021" | ||
| license = "BSD-3-Clause" | ||
| version.workspace = true | ||
| readme = "README.md" | ||
| repository = "https://github.com/NatLabRockies/bambam" | ||
| documentation = "https://docs.rs/bambam-modal-metrics" | ||
| description = "Modal Metrics for road network data in The Behavior and Advanced Mobility Big Access Model" | ||
| keywords = ["nlr", "access-model", "accessibility", "multimodal", "transit"] | ||
| categories = ["science", "science::geo"] | ||
|
|
||
| [dependencies] | ||
| csv = { workspace = true } | ||
| geo = { workspace = true } | ||
| kdam = { workspace = true } | ||
| log = { workspace = true } | ||
| rayon = { workspace = true } | ||
| routee-compass-core = { workspace = true } | ||
| rstar = { workspace = true } | ||
| serde = { workspace = true } | ||
| thiserror = { workspace = true } | ||
| uom = { workspace = true } |
This file contains hidden or 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,30 @@ | ||
| # `bambam-modal-metrics` | ||
|
|
||
| ## A library crate containing: | ||
|
|
||
| Extensible traits for road network data that can facilitate modal metric computations | ||
|
|
||
| The logic for computing modal metrics such as the Walking Comfort Index (WCI) or the Level of Traffic Stress (LTS) | ||
|
|
||
| This library is wired into `bambam` through the set of commands defined in `bamam_util`. You can run the `bambam_util modal_metric` command from the `bambam` crate to compute modal metrics such as WCI and LTS for a given road network. As of now, `bambam-modal-metrics` only supports OpenStreetMaps way/node data as input, but extension to OvertureMaps is planned. | ||
|
|
||
| ## What is a modal metric? | ||
|
|
||
| A modal metric is a value that qualitatively describes links (or edges) in a transportation network for a specific modality. Two examples of this type of metric are: | ||
|
|
||
| ### 1. **Walking Comfort Index**: | ||
| How comfortable are links in a network in terms of walkability? | ||
|
|
||
| #### Considerations: | ||
| - Link and neighboring link traffic speed | ||
| - Link type and characteristics (sidewalk? footway? cycleway?) | ||
| - Does the link contain either a stop sign or a traffic signal to allow for crossings and speed limiting? | ||
|
|
||
| ### 2. **Level of Traffic Stress**: | ||
| How stressful are links in a network for cyclists? | ||
|
|
||
| #### Considerations: | ||
| - Link and neighboring link traffic speed | ||
| - Link type | ||
| - Cycleway infrastructure | ||
| - Single lane vs. multi-lane | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,5 @@ | ||
| pub mod bulk_compute_modal_metric; | ||
| pub mod cycleway_tag; | ||
| pub mod edge_rtree_entry; | ||
| pub mod modal_metrics; | ||
| pub mod ops; |
This file contains hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.