Created
October 23, 2022 20:46
-
-
Save aloncohen1/4b126bfecca4394050ff7e39368ecbd9 to your computer and use it in GitHub Desktop.
roads.ipynb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 5, | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/" | |
}, | |
"id": "WmcS7v_3VNOx", | |
"outputId": "1eccb108-c9e6-49ac-9f52-c118b90af586" | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/plain": [ | |
"<networkx.classes.multidigraph.MultiDiGraph at 0x7f2441113110>" | |
] | |
}, | |
"execution_count": 5, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"G = ox.graph_from_bbox(*bbox, network_type=\"drive\", retain_all=True, truncate_by_edge=True)\n", | |
"G" | |
] | |
} | |
], | |
"metadata": { | |
"colab": { | |
"collapsed_sections": [], | |
"provenance": [] | |
}, | |
"kernelspec": { | |
"display_name": "Python 3", | |
"language": "python", | |
"name": "python3" | |
}, | |
"language_info": { | |
"codemirror_mode": { | |
"name": "ipython", | |
"version": 3 | |
}, | |
"file_extension": ".py", | |
"mimetype": "text/x-python", | |
"name": "python", | |
"nbconvert_exporter": "python", | |
"pygments_lexer": "ipython3", | |
"version": "3.8.6" | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment