Category: Bicycling

How to convert bike-share JSON data to CSV and then to shapefile

Update January 4, 2013: The easiest way to do this is to use Ian Dees’s Divvy API as it outputs straight to GeoJSON (which QGIS likes). See below.

For Michael Carney’s Divvy bike-share stations + Census tract + unbanked Chicagoans analysis and map he needed the Divvy station locations as a shapefile. I copied the JSON-formatted text of the Divvy real-time station API, converted it to CSV with OpenRefine, and then created a shapefile with QGIS.

Here’s how to create a shapefile of any bike-share system that uses hardware from Public Bike System Co based on Montréal and is operated by Alta Bicycle Share (this includes New York City, Chattanooga, Bay Area, Melbourne, and Chicago): Continue reading

Divvy considers my suggestions in bike-share kiosk map redesign

The new design that will appear at the newest stations first and then rolled out to all stations. 

I posted two months ago a critique of the Divvy bike-share maps, seen at 284 stations scattered around Chicago, focusing on the clutter of having so many maps (with the third being useless), unclear labels and labels that covered map objects, and the low prominence of the smartphone app and map legend. Two weeks ago the Divvy public relations manager emailed me a screenshot of the new map design and said that these points had been changed. He said they considered four of my suggestions:

  1. Make CycleFinder, the official Divvy smartphone app, more prominent
  2. Change “You are here” design to make it clear where you are
  3. Make streets and streets’ label text smaller
  4. Removed service area map and make legend more prominent

I replied to the manager and suggested that the “You are here” label be made slightly transparent to show that the road does continue beneath it.

Close-up of the original “you are here” design that covered up other objects and wasn’t centered in the walking distance circle.

Desplaines Street bike lane design facilitates right hooks for bicyclists

Photo 1 of 2: At Randolph Street I approach the “mixing zone” and position my bicycle to ride from the bike lane to the left side of the drivers waiting to turn right. 

In some of my social circles where bicycling is frequently discussed (with fellow transportation planners, advocates, or just people who bike commute frequently) we talk about Chicago’s new protected bike lanes, which started appearing in 2011.

The subject of their design is brought forth: they exacerbate turning conflicts between bicyclists going straight and drivers turning right (and to a lesser extent, left). Participants in these discussions usually express appreciation for the protected bike lanes, largely because of their ability to  reduce injuries overall and influence in bringing new people to bicycling, but are hard pressed to ignore this issue.

The issue is created in some instances when bicyclists are removed from sight of drivers because the bike lane is separated from the travel lanes by a vision-blocking lane of parked cars. However, the Chicago Department of Transportation has attempted to mitigate the turning issue by creating “mixing zones” where turning cars are and through-bicycles are mixed into the same, very wide lane prior to the intersection. When there is a green light, drivers typically merge into the mixing zone without much deceleration and then make the turn regardless of the bicyclist’s position.

Allowing turning cars and through-bicycles to go through these movements in the same place at the same time is a situation of incompatible demands.

Photo 2 of 2: I apparently didn’t position myself far enough to the left because the driver of this black Toyota turned right across my path. 

It’s highly unclear where the bicyclist is supposed to go and how they’re supposed to maneuver themselves in the mixing zone. If the bicyclist follows the lane and then the sharrows, they will be stuck behind cars. One of the pavement markings shows a small arrow above a bicycle symbol possible indicating that bicyclists must turn here (even though a sign says bicyclists and buses don’t have to turn from the lane).

The mixing zones on Desplaines Street are the worst at this, possibly because of the street’s nature as one that moves drivers exiting the city onto streets that lead into the Kennedy Expressway. People are gunning for the highway to get home and people bicycling tend to be in the way.

Additionally, the mixing zones on Desplaines Street differ from other protected bike lane installations (like the first one on Kinzie and subsequent ones on Elston, 18th, and Milwaukee) in that they lack the green lanes that CDOT has been using to highlight where car traffic crosses bike lane traffic.

Desplaines Street has another issue that arises when the signal is red and a bicyclist and a driver are both waiting for a green light. The bicyclist is between the car and the curb. The driver then makes a right turn on red (disregard whether or not a sign control makes this illegal) across the path of the stopped bicyclist. No harm done, right? Maybe, but there are a couple possibilities where this could be dangerous: the driver makes this movement as the light turns green and the bicyclist is attempting to move straight. Or there’s the possibility that the bicyclist also wants to turn right and the driver and bicyclist do so simultaneously without accommodating what the other may be doing. Both situations could lead to the dreaded “right hook”.

The driver of this white Hyundai makes a legal right turn from a “mixing zone” to Madison Street. However, what if the bicyclist wanted to also turn right, or the driver made this as the light was turning green?

The solution to the incompatible desire for one group of roadway users to turn and for the other group to go straight is to separate their movements with traffic signals, which CDOT has done on Dearborn Street.

With these situations in mind, it’s not unexpected to see a bicyclist move through the intersection on a red light to avoid a potential incident at the intersection, the site of most bike-car crashes. CDOT has reported that the red light compliance of people bicycling on Dearborn Street – the only street with bike-only signals – “has increased from only 31 percent of cyclists stopping for reds before the lanes and bike-specific traffic signals were installed, to 81 percent afterwards”.

I don’t think there’s not a problem with protected bike lanes but their precarious design in Chicago as well as the variations within Chicago and across the United States.

The 5 Divvy stations REALLY close to residences

Scene of the crime: Pine Grove/Addison in Lakeview. Photo: Shaun Jacobsen.

The residents who sued the Chicago Department of Transportation and Alderman James Cappleman to have the Divvy bike sharing station removed from “6 steps” from their condos alleged that they were the only residence to be in such situation. At the hearing for the request for emergency injunction, which was denied, they said, “[we’ve] not seen any Divvy stations near residences”.

There are three other Divvy stations I’ve noticed that are equally close to residences but from which no lawsuits came. I suspect many others may exist but perhaps not as close as “6 steps”. The lawsuit provided no barrier, though, in the expansion and installation of Divvy stations across Chicago.

The very close stations include:

Emerald/28th in Bridgeport. Photo: Justin Haugens.

Halsted/Willow in Lincoln Park. Photo: Justin Haugens.

Damen/Pierce in Wicker Park

18th/Halsted. Photo by Timmmmmmmm.

New iOS app offers most advanced Divvy route directions

Chicago Bike Route for iOS

Walking directions from my house to the Divvy station at the CTA California Blue Line station, and then from there to the Divvy station at LaSalle/Illinois Streets. Lastly, there’s walking directions to some arbitrary N LaSalle Street address.

Adam Gluck and Andrew Beinstein showed up at OpenGov Hack Night on July 16, 2013, to show off the technical concept of their forthcoming app for iOS devices. I looped them into the Divvy app-making progress I and others were undertaking (documented on a shared Google Doc).

They said they would make their app was going quite different from all of the eight apps for using Divvy that have since launched before theirs: it would offer directions for walking to the nearest Divvy station with available bikes, directions to the Divvy station nearest their destination with open docks, and then walking directions from that end station to their destination.

Chicago Bike Route launched Friday last week. Currently only three of the eight iOS apps released before Chicago Bike Route have routing. CBR takes directions to a new level by giving you directions from where you are to where you want to go, and not necessarily from a specific Divvy station (like my Chicago Bike Guide does). Instead, CBR gives you complete directions between origin and destination and smartly picks the nearest Divvy station with available bikes. Now, I believe most often this will just be the nearest Divvy station, period, as it’s relatively rare for a station to lack bicycles.

The app uses Google Directions and for every trip makes a maximum of three calls to their API; counts against the app’s free quota from Google. The first call gets walking directions from the origin to the nearest Divvy station with available bikes, and the second call gets bicycling directions to the Divvy station with available docks nearest the destination, and the third call (assuming the destination isn’t that Divvy station) gets walking directions from the end Divvy station to your destination. The next step, I believe, is to have the app use a prediction model to accurately choose the end Divvy station. A lot can happen at that Divvy station in the 30 minutes (or whatever) it takes to get there. It may not have open docks when you arrive.

Two other suggestions I have: an improvement to the autocomplete destination function because it didn’t recognize “Chicago city hall” or its address, “121 N LaSalle Street”; and adding a “locate me” button. Additionally I’d like them to add some basic resources to advise users on where they can get more information about Divvy or bicycling in Chicago.

Adam and Andrew are going to publish a “dock surfing” function in the app that will incorporate multiple segments on Divvy to make a trip longer than the free 30 minute period. This would probably mean a fourth call to the Google Directions API. I emailed Adam and Andrew to learn more about the app development.

Video of Beinstein and Gluck presenting their app to Hack Night. Created by Christopher Whitaker for Smart Chicago Collaborative.

Why did you make Chicago Bike Route?

We made the app because we wanted to make something civic related. We thought that Divvy was an exciting new civic program coming into existence, and we kept seeing it all over the place. It also solves a real problem in public transportation that we notice and hear about a lot living in Hyde Park called the “last mile problem.” We also had the data in our hands from having attended civic hack night at 1871 when Divvy came and we thought “let’s make a native Divvy app!” And that’s what we did. We also released a framework for interacting with the Divvy API natively for developers who don’t want to get their hands dirty playing around with the iOS frameworks.

What makes your app stand out from the pack?

I think the routing but also the simplicity of design of the app.  We wanted it to be something you could just open up and use and was like all the other mapping utilities that one has on their phone (Google Maps, Apple Maps). And that’s what we did. You open it, enter an address, and you get routed to that address. Something that people could use to get up and running with Divvy with basically no familiarity with the system.

What features are you planning for the future?

Bike surfing! Seriously though. We think that it would be a really useful feature for some people, and also help reduce the cost of using the bikes. It would be useful for the regular riders where the $2 additional charge could really add up but also if you are someone who is not part of the program and are just taking the bike out for a joy ride. It can actually get kind of expensive, since every half hour after the first hour in a half is an additional $8, rather than $4.50 for members. You would also be less familiar with the bike stations under that situation. We also need to integrate with Chicago public transportation. But, we also want to keep with the simplicity, and create a user experience with basically no learning curve, and we are a little cautious to throw something in that could complicate things.