Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Extreme Bikesharing

Extreme Bikesharing

Extreme Bikesharing: How I used Python to plan an epic Ford GoBike trip - Jonas Neubert

How do you get the most bike for the buck out of a $10 day-pass for the Bay Wheels (formerly "Ford GoBike") bike share system? This talk is about how I used constraint programming, mapping and routing APIs, public bike share datasets, map visualization libraries, and a whole lot of Python to plan an epic 13-hour-long 121-leg bike ride around the East Bay.

https://jonasneubert.com/talks/

Jonas Neubert

January 08, 2020
Tweet

More Decks by Jonas Neubert

Other Decks in Technology

Transcript

  1. jonemo
    Jonas Neubert
    Extreme Bikesharing
    How I used Python to plan an epic Ford GoBike trip
    SF Python Meetup, 8 Jan 2020

    View full-size slide

  2. jonemo
    switch to Jupyter Notebook
    The primary (technical) content of this presentation was presented
    by stepping through a Jupyter Notebook. You can download a copy
    of the Notebook from this Github repo:
    https://github.com/jonemo/fordgobikesunday/
    The following slides are screenshots of select cells from the
    Jupyter Notebook that are only included in the published version of
    these slides.

    View full-size slide

  3. jonemo
    return from Jupyter Notebook
    After the excursion to the Jupyter Notebook for the main content of
    the presentation, the slides resume here for the trip report.
    You can download a copy of the Notebook from this Github repo:
    https://github.com/jonemo/fordgobikesunday/

    View full-size slide

  4. jonemo
    7
    2
    3
    5
    4
    6.
    1
    8
    9
    10
    11
    12
    13

    View full-size slide

  5. jonemo
    8:53am

    View full-size slide

  6. jonemo
    10:19am

    View full-size slide

  7. jonemo
    11:48am

    View full-size slide

  8. jonemo
    2:28pm

    View full-size slide

  9. jonemo
    4:18pm

    View full-size slide

  10. jonemo
    5:26pm

    View full-size slide

  11. jonemo
    5:59pm
    Telegraph Ave at 58th St

    View full-size slide

  12. jonemo
    7:41pm

    View full-size slide

  13. jonemo
    9:47pm

    View full-size slide

  14. jonemo
    9:58pm

    View full-size slide

  15. jonemo
    9:58pm

    View full-size slide

  16. jonemo
    Stats
    Estimated time from start to finish: 12 hrs 48 min
    Actual time from start to finish: 13 hrs 2 min
    Total bicycle rental time: 6 hrs 43 min
    Total time between rentals: 6 hrs 5 min
    Distance: ~90km
    Times Telegraph Avenue crossed: 8
    Times Telegraph Avenue touched: 2
    Stations checked in at: 121
    Stopped at but not checked in: 1
    Stations missed: 2
    -----
    Total number of stations in East Bay: 124

    View full-size slide

  17. jonemo
    April 2018:
    First e-bikes
    deployed
    Dec 2018:
    First e-bikes
    deployed
    April 2019:
    Brake issues
    June 2019:
    2nd Gen e-bikes
    June 2019:
    Battery fires

    View full-size slide

  18. jonemo
    PyPI packages used:
    - folium
    - mapbox see also: https://docs.mapbox.com/
    - ortools see also: https://developers.google.com/optimization/
    - geopy (for distance calculation)
    Folium map export:
    https://jonemo.github.io/fordgobikesunday/
    https://jonemo.github.io/fordgobikesunday/itinerary.html
    #FordGoBikeSunday Twitter thread:
    https://twitter.com/jonemo/status/1010763287527473154
    Got idea for silly bike ride or hike? Email: [email protected]

    View full-size slide