CartoDB / Canarsie

0 stars 2 forks source link

Title pending

img

Last week brought news that New York's Metropolitan Transit Authority (MTA) was considering how to repair damage to the Canarsie Tunnel, the vital connection used by the L train to connect Manhattan and Brooklyn under the East River. The damage was caused by flooding from 2012's Hurricane Sandy, and the closures for the repairs will in all likelihood have large consequences for L train riders in the near future.

As the MTA weighs its options -- which include a full closing of the L train during repairs, or a longer period with weekend only closures -- CartoDB started digging into open data to shed some light on how disruptive the L train closure would be to the people living in Brooklyn. We specifically want to see:

  1. Who cares about the L?
  2. Are there realistic alternatives?

Overview of the L Train

L overview

The L train is a major East-West subway artery of New York City, connecting Manhattan with many parts of Brooklyn. If you know people who live in Williamsburg and commute to Manhattan in the morning, you've probably heard the stories of morning commutes where the only place to put your arms is on heads of the other people packed like sardines all around you. In recent years, it has been one of the fastest growing subway lines in terms of ridership, with just the Bedford Avenue stop in Williamsburg seeing 27,224 average weekday customers back in 2014. Besides the crowds, the L is a pretty convenient train for New York because of its early adoption of advanced signaling which allows for a more efficient volume of trains to travel on it's tracks.

What data is available to understand more about the L?

To start answering this question, we turned to data from the American Community Survey (ACS), which describes the demographics of people, and LODES, which describes the dynamics between home and work. Both are products of the United States Census.

To look at the relationship of these datasets to the L train, we used location data on L entrances. Gathering all of this data, we are able to assemble information about Brooklyn inhabitants who work in Manhattan and who are likely to use the L based on proximity. We calculate proximity to the L entryways from every block in Manahattan using walking directions calculated by Mapzen's Valhalla.

Using a series of table common joins on geoid and geospatial joins on a census block's closeness to an L entrance, we created a summary table of census block groups that are:

  1. Closer to L entrances than any other subway line
  2. Have counts of the number of workers who live in Brooklyn but work in Manhattan (via LODES)
  3. Demographic information (ACS)
  4. Routing information from the center of a Census Block to the nearest L entrance which gave us an estimate of walking distance and walking time

Let's take a look!

Who cares about the L?

foot traffic

Using the US census data and our calculated walking routes, we can take a look at L-bound foot traffic along routes throughout Brooklyn. Not only do the walking routes above show foot traffic to the L, but specifically these are people who travel all the way to Manhattan for work. We are interested to see if we see a spike in other, non-subway based, transportation options advertising on more on those routes soon.

Some things you might notice right away is the span of coverage in the northwest and southeast of Brooklyn. In both cases, the L train serves many city blocks that aren't well serviced by other trains.

We have to start by pointing out caveats in the dataset that have come up again and again in our analyses. First, as we'll show later, the further east people are located on the L, the more viable alternatives they have to reach Manhattan in the same or similar travel time by changing to another line before the tunnel (e.g. the A at Broadway Junction). Second, we limited our blocks to those that were within a 30 minute walk or less of the subway. The US Census only collects one mode of transportation to work, so while many people probably take a bus to the subway, the data doesn't capture those cases.

While you can see Manhattan-bound subway riders along the entire length of the L, we were curious what relationships there were between travel-time and proportion of people who work in Manhattan. What we found was that three different breakdowns of travel time all showed a negative correlation (p<2e-04) with travel time. The three breakdowns are the amount of time it takes to walk to the subway station, the amount of time riding the subway to Manhattan, and the total commute time.

The problem now is that people can't just move to new homes if the L is out of service for an extended period of time. So let's take a look at what a scenario of shuttle buses would look like.

ridership

Andy's section here

Affected populations

There are many demographic variables that we could explore, but here we will narrow our focus to poverty status as defined by the ACS to slook at the proximity of affected populations to the L.

We analyzed the data to identify areas in Brooklyn where significant groupings of like blockgroups appear so we could identify larger swaths that would be affected by the L closure.

We can first look at the proportion of subway riders

<<<< Andy's Section

Is there a realistic alternative?

When the Gothamist covered the potential shutdown, they called them a potential disruption of epic proportions. We were curious just how disruptive would a full closure of the L train be. The MTA suggested that one of the fastest ways to fix the L would be to close the Canarsie Tunnel completely, potentially replaced by shuttle bus services. Would that be realistic?

To answer that question, we used CartoDB to analyze the best option for riders given different bus coverage. Given the location of the Williamsburg Bridge, we made the assumption that buses would originate at or close to the Lorimer stop in Williamsburg and end in Chinatown or Union Square in Manhattan. Using the Valhalla geocoder again, we found that fastest people could get to Manhattan via this new bus line would be around 10 minutes. To get to any location on the L line in Manhattan would take closer to 20.

If the shuttle bus takes 20 minutes, we are able to calculate the best choices for riders along the L needing to get to Manhattan -- Should they go all the way to Lorimer and take the shuttle bus or should they transfer earlier at Myrtle-Wyckoff to the M train or at Broadway Junction to the A. The answer is shown in the map below.

alternate route

We find that at 20 minute bus shuttle service, all but 5 stops on the L would be better off transferring to another existing line. The challenge that we realized was that at 20 minutes, the shuttle is the best option for almost 75,000 riders per day. Given large buses with 65 passengers this would still take 1154 bus trips per day, or a bus every minute and a half or so. And that is pretending there are only completely full buses or rush hours. We are guessing they'd have to build a new bridge.

We were curious at various speeds of shuttle bus how many subway passengers would still be better taken the bus than back tracking to the M. What we found was that the numbers slowly decline up to 28 minutes. If the shuttle buses took 28 minutes they would still be the better option for 53,000 passengers over back tracking to the M. That is still 816 buses per day. If the shuttle buses took 29 minutes, everyone along the L is better off just taking the L to the M or the A transfers to get to Manhattan.

img

CONCLUSION

possible alternative indicated in the contract. 3+ years of weekend disruption

scratch

Here, let's look at the parts of Brooklyn where the L is the closest train to walk to and relative travel time to Manhattan...

L travel time

more about the above. Use of Mapzen's Tangram yada yada

There are a lot of assumptions in the above map, so we tried to drill down a bit further. By combining population data, subway ridership data, and the proportion of people in each location that travel to Manhattan for work, we are able to make estimates of the foot-traffic for every Brooklyn census block serviced by the L. With CartoDB, we are able to split up every unique route from home to the L entrences and determine segment-by-segment foot-traffic.

The demographics

There are a lot of different ways you can split the L ridership using parameters of the US Census.

bivariate of poverty

Calculate the number of new buses needed. Assumption, 65 passengers per bus

update total_time_to_manhattan_2 set az_buses_required = CASE WHEN az_route = 'S' THEN lodes_jobs_bk_mh/65.0 ELSE 0 END

How to calculate new ride times based on optimization,

update total_time_to_manhattan_2 set az_route_time = CASE WHEN az_route = 'A' THEN az_time_to_a + az_a_cost ELSE
CASE WHEN az_route = 'M' THEN az_time_to_m + az_m_cost ELSE
az_time_to_s + az_s_cost END
END;

update total_time_to_manhattan_2 set az_route_total_time = az_route_time + (walking_time / 60)

How to create new estimate of best commute option with bus vs backtrack to M or A

update total_time_to_manhattan_2 set az_route =
case when az_s_cost+az_time_to_s+29 < least(az_a_cost+az_time_to_a, az_m_cost+ az_time_to_m) then 'S' ELSE
case when az_a_cost+az_time_to_a < az_m_cost+ az_time_to_m then 'A' ELSE
'M'
END
END

Get sums of riders per option weighted by lodes to manhattan

SELECT sum(subway_elevated_public_transit_commuters_16_and_over * (lodes_jobs_bk_mh/lodes_pop::numeric)), az_route FROM total_time_to_manhattan_2 group by az_route

Get sums of riders per option

SELECT sum(subway_elevated_public_transit_commuters_16_and_over), az_route FROM andrew.total_time_to_manhattan_2 group by az_route

The MTA periodically releases data about subway ridership but knowing who those people are takes a bit more work.