Skip to content

Instantly share code, notes, and snippets.

@hollemawoolpert
Last active January 3, 2022 14:17
Show Gist options
  • Save hollemawoolpert/2dddca06081a4798d8878f5ad522ad2a to your computer and use it in GitHub Desktop.
Save hollemawoolpert/2dddca06081a4798d8878f5ad522ad2a to your computer and use it in GitHub Desktop.
Find arriving bus with Shapely

Binder

Find closest arriving bus

Uses Shapely basic linear referencing capabilities to find nearest bus to each stop.

Run on binder

Run locally

Prerequisites

  • Python 3 environment
  • JupyterLab
pip install jupyterlab

Installation

pip install -r requirements.txt

Run notebook

jupyter notebook
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Shapely==1.6.4.post2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment