-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1318 from cal-itp/speedmaps-patch
Speedmaps patch
- Loading branch information
Showing
125 changed files
with
583 additions
and
82 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
File renamed without changes.
File renamed without changes.
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
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,66 @@ | ||
# California Transit Speed Maps | ||
|
||
Supporting transit is integral to Caltrans' vision of delivering a connected, equitable, and more sustainable state transportation network as well as the Department’s work to combat the climate crisis. | ||
|
||
To help realize that vision, the California Integrated Travel Program (Cal-ITP) is developing analyses alongside our partners such as the Caltrans Division of Research, Innovation and System Information (DRISI) in order to provide Caltrans staff and external stakeholders with actionable data to prioritize transit projects. | ||
|
||
Transit in California is overwhelmingly provided by buses. However, speeds have been declining for years, and now average below 10mph across much of California – and often much lower during peak times in urban areas. These slow speeds translate to countless hours wasted for transit riders and jeopardize the ability of California’s transit agencies to provide frequent, reliable service. | ||
|
||
We also measure speed variation. Low speeds delay transit, but variation is equally problematic since it leads to an inconsistent experience for transit riders and complicates scheduling of transit services. | ||
|
||
Our maps already include routes and operators accounting for about 80% of bus riders in the state, including operators in every Caltrans district. Cal-ITP continues to work daily to onboard and support new agencies in providing quality data that improves the transit rider experience and powers useful and timely analysis. | ||
|
||
This site is updated at least quarterly. | ||
|
||
Select source code can be found at: | ||
|
||
[https://github.com/cal-itp/data-analyses/tree/main/ca_transit_speed_maps](https://github.com/cal-itp/data-analyses/tree/main/ca_transit_speed_maps) | ||
|
||
[https://github.com/cal-itp/data-analyses/tree/main/rt_delay/rt_analysis](https://github.com/cal-itp/data-analyses/tree/main/rt_delay/rt_analysis) | ||
|
||
[https://github.com/cal-itp/data-analyses/blob/main/_shared_utils/shared_utils/rt_utils.py](https://github.com/cal-itp/data-analyses/blob/main/_shared_utils/shared_utils/rt_utils.py) | ||
|
||
|
||
## Time Period Definitions | ||
|
||
* AM Peak: 07:00-10:00 | ||
* Midday: 10:00-15:00 | ||
* PM Peak: 15:00-20:00 | ||
* Evening: 20:00-24:00 | ||
* Owl: 00:00-04:00 | ||
* Early AM: 04:00-07:00 | ||
|
||
## Methodology | ||
|
||
Segment speed is estimated using the time and distance between vehicle positions reports, with distance being measured linearly along the corresponding transit route. These maps show speeds along segments, which are calculated by interpolating the two nearest position reports for each trip in order to estimate speed along each segment, then taking the 20th percentile of speeds for that segment in each time period. This site shows data for a specific day, usually a Wednesday (and not a holiday or other date we believe could be atypical). | ||
|
||
Generally, segments are constructed from one stop to the next, however, if the distance between stops is large we add interpolated segments every kilometer to provide additional resolution for rural and express services. | ||
|
||
We use the ratio between 80th and 20th percentile speeds in a segment to measure speed variation. | ||
|
||
## What's New? | ||
|
||
We're aligining with segment speeds published via the [open data portal!](https://gis.data.ca.gov/datasets/4937eeb59fdb4e56ae75e64688c7f2c0_0/explore) | ||
|
||
While the datasets don't fully match just yet, this site is now based on the same underlying data. This should help us update it more often, enhance accuracy for complex route shapes, and include as many transit operators as possible. | ||
|
||
The site also includes a more informative speed and variation by time of day chart at the bottom of the page. | ||
|
||
## Data Sources | ||
Archived GTFS-Realtime Vehicle Positions data, plus corresponding GTFS Schedule data. | ||
|
||
Each map includes a link to download its geospatial data in a gzip-compressed GeoJSON format (.geojson.gz). Most file compression software, including 7zip on Windows, will decompress these files. Once decompressed, most GIS software including ESRI ArcGIS Pro and QGIS can import the GeoJSON. | ||
|
||
## Ongoing Work | ||
|
||
The Cal-ITP team is working to transition the site to a rolling average of recent dates, instead of a single day. | ||
|
||
Questions or feedback? Please email [email protected] | ||
|
||
## Who We Are | ||
|
||
This website was created by the [California Department of Transportation](https://dot.ca.gov/)'s Division of Data and Digital Services. We are a group of data analysts and scientists who analyze transportation data, such as General Transit Feed Specification (GTFS) data, or data from funding programs such as the Active Transportation Program. Our goal is to transform messy and indecipherable original datasets into usable, customer-friendly products to better the transportation landscape. For more of our work, visit our [portfolio](https://analysis.calitp.org/). | ||
|
||
<img src="https://raw.githubusercontent.com/cal-itp/data-analyses/main/portfolio/Calitp_logo_MAIN.png" alt="Alt text" width="200" height="100"> <img src="https://raw.githubusercontent.com/cal-itp/data-analyses/main/portfolio/CT_logo_Wht_outline.gif" alt="Alt text" width="129" height="100"> | ||
|
||
<br>Caltrans®, the California Department of Transportation® and the Caltrans logo are registered service marks of the California Department of Transportation and may not be copied, distributed, displayed, reproduced or transmitted in any form without prior written permission from the California Department of Transportation. |
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,43 @@ | ||
# Book settings | ||
# Learn more at https://jupyterbook.org/customize/config.html | ||
|
||
title: California Transit Speed Maps | ||
author: Cal-ITP | ||
copyright: "2024" | ||
#logo: calitp_logo_MAIN.png | ||
|
||
# Force re-execution of notebooks on each build. | ||
# See https://jupyterbook.org/content/execute.html | ||
execute: | ||
execute_notebooks: 'off' | ||
allow_errors: false | ||
timeout: -1 | ||
|
||
# Define the name of the latex output file for PDF builds | ||
latex: | ||
latex_documents: | ||
targetname: book.tex | ||
|
||
launch_buttons: | ||
binderhub_url: "https://mybinder.org" | ||
jupyterhub_url: "https://hubtest.k8s.calitp.jarv.us" | ||
thebe: true | ||
|
||
repository: | ||
url: https://github.com/cal-itp/data-analyses/ # Online location of your book | ||
# path_to_book: docs # Optional path to your book, relative to the repository root | ||
path_to_book: ca_transit_speed_maps | ||
branch: main # Which branch of the repository should be used when creating links (optional) | ||
|
||
# Add GitHub buttons to your book | ||
# See https://jupyterbook.org/customize/config.html#add-a-link-to-your-repository | ||
html: | ||
use_issues_button: true | ||
use_repository_button: true | ||
use_edit_page_button: true | ||
google_analytics_id: 'G-JCX3Z8JZJC' | ||
|
||
sphinx: | ||
config: | ||
html_js_files: | ||
- https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js |
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,41 @@ | ||
format: jb-book | ||
parts: | ||
- caption: null | ||
chapters: | ||
- file: district_01-eureka.md | ||
sections: | ||
- glob: district_01-eureka/* | ||
- file: district_02-redding.md | ||
sections: | ||
- glob: district_02-redding/* | ||
- file: district_03-marysville.md | ||
sections: | ||
- glob: district_03-marysville/* | ||
- file: district_04-oakland.md | ||
sections: | ||
- glob: district_04-oakland/* | ||
- file: district_05-san-luis-obispo.md | ||
sections: | ||
- glob: district_05-san-luis-obispo/* | ||
- file: district_06-fresno.md | ||
sections: | ||
- glob: district_06-fresno/* | ||
- file: district_07-los-angeles.md | ||
sections: | ||
- glob: district_07-los-angeles/* | ||
- file: district_08-san-bernardino.md | ||
sections: | ||
- glob: district_08-san-bernardino/* | ||
- file: district_09-bishop.md | ||
sections: | ||
- glob: district_09-bishop/* | ||
- file: district_10-stockton.md | ||
sections: | ||
- glob: district_10-stockton/* | ||
- file: district_11-san-diego.md | ||
sections: | ||
- glob: district_11-san-diego/* | ||
- file: district_12-irvine.md | ||
sections: | ||
- glob: district_12-irvine/* | ||
root: README |
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 @@ | ||
# District 01 - Eureka |
3 changes: 3 additions & 0 deletions
3
..._new_speedmaps__district_01-eureka__organization_source_record_id_recaaoqedvwhcmivt.ipynb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
..._new_speedmaps__district_01-eureka__organization_source_record_id_recynxkqeoo9djevw.ipynb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
..._new_speedmaps__district_01-eureka__organization_source_record_id_recaa3naonr4a5rsj.ipynb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
..._new_speedmaps__district_01-eureka__organization_source_record_id_recpwxkbgll4aiqxv.ipynb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
..._new_speedmaps__district_01-eureka__organization_source_record_id_recpwbejxzlhqcjhe.ipynb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
..._new_speedmaps__district_01-eureka__organization_source_record_id_reconkhqf25crjt4q.ipynb
Git LFS file not shown
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 @@ | ||
# District 02 - Redding |
3 changes: 3 additions & 0 deletions
3
...new_speedmaps__district_02-redding__organization_source_record_id_reci1funpr306h0hw.ipynb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...new_speedmaps__district_02-redding__organization_source_record_id_recx4zg2lvzb7kgal.ipynb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...new_speedmaps__district_02-redding__organization_source_record_id_reckn0q28coqdsy5l.ipynb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...new_speedmaps__district_02-redding__organization_source_record_id_recetov4xtjzdjtuj.ipynb
Git LFS file not shown
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 @@ | ||
# District 03 - Marysville |
3 changes: 3 additions & 0 deletions
3
..._speedmaps__district_03-marysville__organization_source_record_id_recf7l9tozkxomqqz.ipynb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
..._speedmaps__district_03-marysville__organization_source_record_id_recajnarpfek5qooe.ipynb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
..._speedmaps__district_03-marysville__organization_source_record_id_rec43oyrfhtpddrhj.ipynb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
..._speedmaps__district_03-marysville__organization_source_record_id_reczucqgqgtmpkpkc.ipynb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
..._speedmaps__district_03-marysville__organization_source_record_id_recx9lccse1jmjsmg.ipynb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
..._speedmaps__district_03-marysville__organization_source_record_id_rec3u4amplqobcotr.ipynb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
..._speedmaps__district_03-marysville__organization_source_record_id_recs1jkez73hev8pj.ipynb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
..._speedmaps__district_03-marysville__organization_source_record_id_rech2fdhvrl7nipha.ipynb
Git LFS file not shown
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 @@ | ||
# District 04 - Oakland |
3 changes: 3 additions & 0 deletions
3
...new_speedmaps__district_04-oakland__organization_source_record_id_recozgevyf7jimm9l.ipynb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...new_speedmaps__district_04-oakland__organization_source_record_id_recvebksbc7uxlarc.ipynb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...new_speedmaps__district_04-oakland__organization_source_record_id_recjnakvdegulsko3.ipynb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...new_speedmaps__district_04-oakland__organization_source_record_id_rechaapwbeffo33ox.ipynb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...new_speedmaps__district_04-oakland__organization_source_record_id_reczluqlw1y5oqqf8.ipynb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...new_speedmaps__district_04-oakland__organization_source_record_id_recot6qbamloolcrm.ipynb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...new_speedmaps__district_04-oakland__organization_source_record_id_recubgdxhpdx3494b.ipynb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...new_speedmaps__district_04-oakland__organization_source_record_id_recsnvwvlqwgsoxle.ipynb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...new_speedmaps__district_04-oakland__organization_source_record_id_recmb4uxrvlrxyf3l.ipynb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...new_speedmaps__district_04-oakland__organization_source_record_id_recrm3c9zfaft4v2b.ipynb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...new_speedmaps__district_04-oakland__organization_source_record_id_recn8ztmgbyzv1qxv.ipynb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...new_speedmaps__district_04-oakland__organization_source_record_id_receejvegrhgotwgj.ipynb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...new_speedmaps__district_04-oakland__organization_source_record_id_rec75nesvrqpwnilv.ipynb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...new_speedmaps__district_04-oakland__organization_source_record_id_recox7qmhlprgfuz3.ipynb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...new_speedmaps__district_04-oakland__organization_source_record_id_recans4m9ydhvdyob.ipynb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...new_speedmaps__district_04-oakland__organization_source_record_id_recnob7pqbrlqvg5e.ipynb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...new_speedmaps__district_04-oakland__organization_source_record_id_reciep8muucosbvbz.ipynb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...new_speedmaps__district_04-oakland__organization_source_record_id_rec9rgrya9sjwyp2p.ipynb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...new_speedmaps__district_04-oakland__organization_source_record_id_recsbfxgev9icdcy1.ipynb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...new_speedmaps__district_04-oakland__organization_source_record_id_recmatcuqaurncs8j.ipynb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...new_speedmaps__district_04-oakland__organization_source_record_id_recw3mrsmkdtnnvlt.ipynb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...new_speedmaps__district_04-oakland__organization_source_record_id_recc5ct95eufmqcxr.ipynb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...new_speedmaps__district_04-oakland__organization_source_record_id_recllbvvke1v4zszg.ipynb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...new_speedmaps__district_04-oakland__organization_source_record_id_rec7shjfgrplu0yjy.ipynb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...new_speedmaps__district_04-oakland__organization_source_record_id_recdupuxinmugxeiz.ipynb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...new_speedmaps__district_04-oakland__organization_source_record_id_recumm4gcnxaqrwpn.ipynb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...new_speedmaps__district_04-oakland__organization_source_record_id_recd9x7ghprn46v6m.ipynb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...new_speedmaps__district_04-oakland__organization_source_record_id_reciknsntdkq0vsiv.ipynb
Git LFS file not shown
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 @@ | ||
# District 05 - San Luis Obispo |
3 changes: 3 additions & 0 deletions
3
...dmaps__district_05-san-luis-obispo__organization_source_record_id_recmm99msxjmc6ppv.ipynb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...dmaps__district_05-san-luis-obispo__organization_source_record_id_rec9zgmjgnnes75k1.ipynb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...dmaps__district_05-san-luis-obispo__organization_source_record_id_reckp33bhauzlmo1m.ipynb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...dmaps__district_05-san-luis-obispo__organization_source_record_id_recezj9senp9vy3g0.ipynb
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...dmaps__district_05-san-luis-obispo__organization_source_record_id_reciakgbn1dp9dk9n.ipynb
Git LFS file not shown
Oops, something went wrong.