Recommending Street Closures for Social Distancing Using Bike Share Trip Data
Final Project for CP255
May 3, 2020
Introduction
Due to the ongoing circumstances regarding COVID-19 Bay Area jurisdictions and the state of California have mandated residents shelter-in-place. For those that go outside it is recommended that people follow social distancing guidelines and remain 6 feet away from each other to avoid further spread of the novel coronavirus. However, this can often be difficult in many built environments where the space allocated to vehicles dwarfs the width of the sidewalk.
To encourage social distancing many cities around the world have converted road space from automotive traffic to pedestrians and bicyclists. Although many of these are just temporary closures, the increased space for non-vehicular travel is allowing residents to get exercise, fresh air, and access still-open essential buildings in a more sustainable way.
The City of Oakland has been receptive to these needs and recently identified 74 miles of streets to be cordoned off for non-automotive travel in their Slow Streets Project. Despite the decrease in vehicular travel and the need for increased sidewalk space not all cities in the Bay area are following suit. Notably, Berkeley has balked at a petition to repurpose Berkeley’s bicycle boulevards similar to what Oakland has done. San Francisco did recently close some streets to through-traffic, however it is unclear whether they plan to do more nor how they identified what streets to close.
This project builds on the need for additional street closures to create safe streets in the Bay Area during the pandemic. I use open-source bike share data from Bay Wheels to identify the most frequented biking paths by system users. Together with maps of bicycle facilities, census demographics, and residential area job categories these routes can serve as recommendations for jurisdictions in the Bay Area that are looking to close streets to vehicular traffic to promote social distancing.Trip Patterns Before and During the Pandemic
On March 16, 2020 multiple Bay Area jurisdictions (including all regions serviced by Bay Wheels) ordered residents to shelter-in-place. Starting the next day all non-essential workers were required to stay home, drastically impacting trip patterns.
This heatmap of bike share trips between March 1-16 displays distinct trip patterns. During weekdays people are most frequently using Bay Wheels for travel between 8am-9am and 5pm-6pm. These trips represent peak period travel for work. They are likely first-last mile connections between people's home or office and public transit because the most frequented bike share stations are at BART or Caltrain stations. There are also trips made during weekdays outside of these times, but not to the same magnitude. Such trips may not be for commuting purposes.
On the weekend the morning/evening commute peaks disappear. Instead, people are using Bay Wheels bikes for trips during the middle of the day. These are likely leisure or errand trips for people moving around on the weekend. They do not occur with the same magnitude as weekday peak period trips. Regardless of the day of the week Bay Wheels is not often used in the evening, possibly because people do not feel safe biking at night.
The shelter-in-place order, not surprisingly, had a massive impact on travel behavior. One noticeable change is that the quantity of trips taken is much lower than the first half of the month. Additionally, between March 17-31 the morning and evening peaks commutes have disappeared from weekday trips. It even appears that people may be waking up later because trips don't start occuring en masse until noon most days. Now, the majority of trips appear to be on the weekends, likely when people working from home during the week are off and can get outside for some (socially-distanced) exercise.
Because the March data is not representative of typical bike share travel behavior, the remaining analysis for this project was completed using data from February 2020. The shelter-in-place order did not exist in February and the weather was typical of the Bay Area making it a reasonable proxy for typical trips. Both weekday and weekend trips are analyzed because street closures should aim to capture both essential work commutes and recreational travel.
Identifying Frequent Bicycle Routes
This project was completed using Python (and supportive packages) in Jupyter notebooks. The GitHub Repo for this project can be found here: CP255 Github Repo. The main dataset used for this project is open-source system data from Bay Wheels. Bay Wheels is the provider of docked bicycle sharing service in San Jose, San Jose, and the East Bay since 2013. The data contains a monthly record of each trip made between docked bike share stations. The first step of the project involved cleaning and processing the raw data that comes from Bay Wheels. Possibly erroneous trips (i.e. trips that are too long, time-wise) and illogical trips (i.e. trips that are too long, distance-wise) were removed. Then the dataset was shortened to only include unique origin-destination pairs, with counts for each one (i.e. 15 trips between origin A and destination B).
Next, the OSMnx package (Boeing, 2017) was used on the cleaned data to calculate the shortest route between each origin-destination pair. Below is sample code and map that use the OSMnx package to generate a street network with the OpenStreetMaps API and query the path between two nodes.
Example of OSMnx Shortest Path MethodThe goal is to identify the streets Bay Wheels riders frequent the most. The images below display this process. Geospatial methods (gpd.geometry.unary_union
, gpd.tools.jsoin
) were applied to the routes queried using OSMnx (left image) to create a dataset with only unique segments (right image).
This processed dataset of segments was then intersected with the paths from all Bay Wheels routes to output counts of trips over each segment. This layer and the locations of bicycle facilities in the Bay Area are displayed below in an interactive map. Pan and zoom around San Francisco, Berkeley/Oakland, and San Jose to see where Bay Wheels users frequently travel.
Street Closure Recommendations
Using the map above of the most frequented bicycle routes, along with data on the existing bicycle facilities (from the Metropolitan Transportation Commission), the population density per tract (from the Census), and percent of essential workers per tract (identified using NAICS job industry and sector codes from the LEHD Origin-Destination Employment Statistics) I identified streets that should be closed to through-traffic to improve social distancing in the Bay Area. Below are lists of streets to be closed in San Francisco and the East Bay. No street closures were recommended for San Jose because there are not enough trips taken there to justify street closures.
- San Francisco:
- Hayes St (Divisadero - Van Ness)
- 11th St (Market - Bryant)
- 17th St (Church - Pennsylvania)
- Polk St (Chestnut - Ellis)
- Hyde St (Bush - McAllister)
- Rhode Island St (17th - 23rd)
- 23rd (Guerrero - Rhode Island)
- Clayton St (Oak - Carl)
- Folsom St (11th - 17th)
- Washington ST (Drumm - Grant)
- Sanchez St (17th - Duboce)
- Sutter St (Scott - Kearny)
- 2nd Ave (Lake - Fulton)
- 8th St (Lake - Fulton)
- Jersey St (Douglass - Church)
- 19th St (Diamond - Church)
- Joose Ave (Genessee - Acadia)
- Chestnut St (Fillmore - Polk)
- Ellis St (Divisadero - Steiner)
- Powell St (Broadway - Bay)
- Keith St (Armstrong - Revere)
- Newhall St (Revere - Kirkwood)
- East Bay:
- 7th St (Channing - Addison)
- Addison St (2nd - 9th)
- Virginia St (5th - San Pablo)
- Vine St (Bonita - Walnut)
- 9th St (Ashby - Channing)
- McGee Ave (Carlton - Hearst)
- Hollis St (Powell - 40th)
- Derby St (San Pablo - Sacramento)
- Carlton St (Sacramento - Fulton)
- Hillegaas Ave (Dwight - 62nd)
- Shafter Ave (Forest - 42nd)
- Milvia St (Stuart - Allston)
- Fulton St (Carlton - Prince)
These streets are identified because they are heavily trafficked by Bay Wheels users. They were also selected because many of them contain existing bicycle infrastructure and are likely used for commuting purposes. Having non-vehicular traffic on these streets will make commutes for essential workers safer. Additionally, these routes pass through heavily populated neighborhoods and will allow for better dispersal on the street so residents can still get outside for fresh air and exercise without congregating on sidewalks and in parks.
These streets are displayed in red in the map below. The blue dots indicate bike share stations in the Bay Wheels system and the yellow lines are already closed streets in San Francisco (as of 4/25/20). In Oakland, the purple lines represent already implemented "slow streets" and the grey lines indicate streets in progress of being closed (as of 5/12/20) (data provided by OakDOT).
Next Steps
There are some important considerations to note in these recommendations. As mentioned above, only trips from February 2020 were analyzed. That month of travel was picked because it was the most recent full month of non-shelter-in-place data, but it may not be representative of the entire Bay Wheels system. Future work should include trips taken over multiple months or multiple years. It may also be interesting to repeat this analysis with just weekday or just weekend trips. It is unclear whether trip purpose has an impact on route, but it is also likely that many street closures to promote social distancing do not need to be in downtown business districts. Separating out trips by purpose and time of day could result in different street closure recommendations.
Plus, this project could benefit from additional analysis of sociodemographic data. Census data on the density of the elderly, households with children under 18, and people of color will help ensure the populations that can access these street closures are representative of the population in the Bay Area.
Lastly, an exciting part of this project is that Lyft, the parent company of the Bay Wheels bike share system, operates docked bike share in other cities in the US (New York, Boston, Chicago, Minneapolis, etc.). They standardize their monthly trip data, so code created for this project should be able to process trip data from other locations. Hopefully, this analysis can be expanded to create healthy, open spaces across the country during these tough times.
References
Boeing, G. "OSMnx: New Methods for Acquiring, Constructing, Analyzing, and Visualizing Complex Street Networks." Computers, Environment and Urban Systems 65 (2017), pp. 126-139.
Dowd, Katie. "San Francisco is closing these streets to help with social distancing." SF Gate, Apr. 21, 2020. https://www.sfgate.com/bayarea/article/San-Francisco-is-closing-slow-streets-15215512.php.
Laker, Laura. “World cities turn their streets over to walkers and cyclists.” The Guardian, Apr. 11, 2020. https://www.theguardian.com/world/2020/apr/11/world-cities-turn-their-streets-over-to-walkers-and-cyclists.
"Oakland Slow Streets." City of Oakland. Accessed Apr. 24, 2020. https://www.oaklandca.gov/projects/oakland-slow-streets
Rudick, Roger. “Oakland to Open 74 Miles of Streets for Walkers and Cyclists.” Streetsblog, Apr. 10, 2020. https://sf.streetsblog.org/2020/04/10/oakland-to-open-74-miles-of-streets-for-safe-biking-and-recreation/.
“Social Distancing, Quarantine, and Isolation.” Centers for Disease Control and Prevention. Accessed 3 May 2020. https://www.cdc.gov/coronavirus/2019-ncov/prevent-getting-sick/social-distancing.html.
“System Data.” Lyft. Accessed Apr 10., 2020. https://www.lyft.com/bikes/bay-wheels/system-data.
Walk Bike Berkeley. “Letter requesting closure of streets for social distancing & COVID-19.”Accessed Apr. 13, 2020. https://docs.google.com/document/u/1/d/e/2PACX-1vQQkbtEb3s0bfUMcLUMeu1Oa4OWnmxK9hsRLIRfw3PznZYCsc7kpUZ9pjpHS1La9PWUswL7q9LGVG7q/pub.