Uses Shapely basic linear referencing capabilities to find nearest bus to each stop.
Prerequisites
- Python 3 environment
- JupyterLab
pip install jupyterlab
Installation
pip install -r requirements.txt
Run notebook
jupyter notebook
Uses Shapely basic linear referencing capabilities to find nearest bus to each stop.
Prerequisites
pip install jupyterlab
Installation
pip install -r requirements.txt
Run notebook
jupyter notebook
| { | |
| "type": "FeatureCollection", | |
| "features": [ | |
| { | |
| "type": "Feature", | |
| "properties": {}, | |
| "geometry": { | |
| "type": "MultiLineString", | |
| "coordinates": [ | |
| [ | |
| [ | |
| 1, | |
| 0 | |
| ], | |
| [ | |
| 2, | |
| 0 | |
| ] | |
| ], | |
| [ | |
| [ | |
| 2, | |
| 0 | |
| ], | |
| [ | |
| 3, | |
| 2 | |
| ] | |
| ], | |
| [ | |
| [ | |
| 3, | |
| 2 | |
| ], | |
| [ | |
| 3, | |
| 3 | |
| ] | |
| ], | |
| [ | |
| [ | |
| 3, | |
| 3 | |
| ], | |
| [ | |
| 2, | |
| 3 | |
| ] | |
| ], | |
| [ | |
| [ | |
| 2, | |
| 3 | |
| ], | |
| [ | |
| 0, | |
| 3 | |
| ] | |
| ], | |
| [ | |
| [ | |
| 0, | |
| 3 | |
| ], | |
| [ | |
| 0, | |
| 2 | |
| ] | |
| ], | |
| [ | |
| [ | |
| 0, | |
| 2 | |
| ], | |
| [ | |
| 1, | |
| 2 | |
| ] | |
| ], | |
| [ | |
| [ | |
| 1, | |
| 2 | |
| ], | |
| [ | |
| 1, | |
| 0 | |
| ] | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "properties": { | |
| "marker-color": "#2F4F4F", | |
| "marker-size": "medium", | |
| "marker-symbol": "circle", | |
| "id": "1" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| 3, | |
| 2 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "properties": { | |
| "marker-color": "#2F4F4F", | |
| "marker-size": "medium", | |
| "marker-symbol": "circle", | |
| "id": "2" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| 2, | |
| 3 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "properties": { | |
| "marker-color": "#2F4F4F", | |
| "marker-size": "medium", | |
| "marker-symbol": "circle", | |
| "id": "3" | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [ | |
| 1, | |
| 2 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "properties": { | |
| "marker-color": "#FF7F50", | |
| "marker-size": "medium", | |
| "marker-symbol": "bus", | |
| "id": 1 | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": | |
| [ | |
| 1, | |
| 0 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "properties": { | |
| "marker-color": "#FF7F50", | |
| "marker-size": "medium", | |
| "marker-symbol": "bus", | |
| "id": 2 | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": | |
| [ | |
| 3, | |
| 3 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "properties": { | |
| "marker-color": "#FF7F50", | |
| "marker-size": "medium", | |
| "marker-symbol": "bus", | |
| "id": 3 | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": | |
| [ | |
| 1.5, | |
| 3 | |
| ] | |
| } | |
| }, | |
| { | |
| "type": "Feature", | |
| "properties": { | |
| "marker-color": "#FF7F50", | |
| "marker-size": "medium", | |
| "marker-symbol": "bus", | |
| "id": 4 | |
| }, | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": | |
| [ | |
| 0, | |
| 2 | |
| ] | |
| } | |
| } | |
| ] | |
| } |
| Shapely==1.6.4.post2 |