Created
October 23, 2022 20:35
-
-
Save aloncohen1/a35c82ce106efcf52b720bc33866d588 to your computer and use it in GitHub Desktop.
bbox
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": 1, | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/" | |
}, | |
"id": "6gRI46Tam3hg", | |
"outputId": "87955713-39b0-4ce1-a8ce-01988695ebc1" | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/plain": [ | |
"(45.58685203354929,\n", | |
" 45.406987966450714,\n", | |
" -122.53750234967559,\n", | |
" -122.7941036503244)" | |
] | |
}, | |
"execution_count": 2, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"import osmnx as ox\n", | |
"lat, lng, radius = 45.496920, -122.665803, 10000\n", | |
"bbox = ox.utils_geo.bbox_from_point((lat, lng), radius)\n", | |
"bbox" | |
] | |
} | |
], | |
"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