Notebooks for plotting real-time AC Transit bus coordinates
Last updated Jul 21, 2026
11
Stars
2
Forks
2
Issues
0
Stars/day
Attention Score
41
Language breakdown
Jupyter Notebook 100.0%
▸ Files
click to expand
README
actransit-map
A Jupyter notebook repository for plotting real-time AC Transit bus coordinates on a map.
Introduction
.ipynb and .ipynb complement each other in:
1) Gathering images of real-time bus locations in various regions in the San Francisco East Bay ().
2) Converting these images to a gif.

Python Setup
This script requires Python 3.5 and above. Please see
.txt for required Python libraries. Clone this repository and use to install the necessary libraries into your conda environment, like this:install -r requirements.txt You will have to install two additional libraries to properly execute
() from the .io module:1)
install selenium 2) install -c conda-forge phantomjs
Running the Notebooks
Run
.ipynb entirely and execute () to start collecting images (which will accumulate in the ./mapfigs directory). () will run indefinitely. When you are satisfied with the accumulated images, click the square button at the top of the notebook to interrupt the kernel: 
Then, run the entirety of
.ipynb. Provide an appropriate name for your gif when prompted in (). This will create a .gif file of your .png images in the ./giffiles directory.
Notes
A .png file will range from 200kb - 240kb in size. Accumulating hours of images can lead to a large .gif file. For example, 12 hours of images could lead to a ~ 1 GB gif image. Please let me know if you have questions.
Fin
🔗 More in this category