From 60c7bd750b3280e3522c9426184f58dda8a691a7 Mon Sep 17 00:00:00 2001 From: Geoff Boeing Date: Wed, 1 May 2024 19:31:33 -0700 Subject: [PATCH 1/4] update pre-commit --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2cd445f..a8cf34e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: "v4.5.0" + rev: "v4.6.0" hooks: - id: check-added-large-files args: [--maxkb=50] From 6248dce1b595a27385f90cba57b3fd2354d51397 Mon Sep 17 00:00:00 2001 From: Geoff Boeing Date: Wed, 1 May 2024 19:38:11 -0700 Subject: [PATCH 2/4] updates for v1.9.3 --- .github/workflows/tests.yml | 1 + LICENSE.txt | 2 +- README.md | 13 ++++++------- environment.yml | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1f81265..4814e17 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -5,6 +5,7 @@ on: branches: [main] pull_request: branches: [main] + workflow_dispatch: jobs: build: diff --git a/LICENSE.txt b/LICENSE.txt index ce91439..032ddc1 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2016–2024 Geoff Boeing https://geoffboeing.com/ +Copyright (c) 2016-2024 Geoff Boeing https://geoffboeing.com/ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 17ca419..2db41ce 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,17 @@ +# OSMnx Examples Gallery + [![GitHub tag](https://img.shields.io/github/v/tag/gboeing/osmnx-examples?label=Uses+OSMnx)](https://github.com/gboeing/osmnx) [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/gboeing/osmnx-examples/main?urlpath=lab) [![Build Status](https://github.com/gboeing/osmnx-examples/workflows/tests/badge.svg?branch=main)](https://github.com/gboeing/osmnx-examples/actions?query=workflow%3Atests) -# OSMnx Examples Gallery - -OSMnx 2.0 is coming soon: read the [migration guide](https://github.com/gboeing/osmnx/issues/1123). +OSMnx 2.0 is in beta: read the [migration guide](https://github.com/gboeing/osmnx/issues/1123). -[OSMnx](https://github.com/gboeing/osmnx) is a Python package to download, model, analyze, and visualize street networks and other geospatial features from [OpenStreetMap](https://www.openstreetmap.org/copyright/). You can download and model walking, driving, or biking networks with a single line of code then easily analyze and visualize them. You can just as easily work with urban amenities/points of interest, building footprints, transit stops, elevation data, street orientations, speed/travel time, and routing. +[OSMnx](https://github.com/gboeing/osmnx) is a Python package to easily download, model, analyze, and visualize street networks and other geospatial features from OpenStreetMap. You can download and model walking, driving, or biking networks with a single line of code then analyze and visualize them. You can just as easily work with urban amenities/points of interest, building footprints, transit stops, elevation data, street orientations, speed/travel time, and routing. This gallery contains step-by-step usage tutorials and feature demonstrations as Jupyter notebooks. You can run these notebooks interactively online with [Binder](https://mybinder.org/v2/gh/gboeing/osmnx-examples/main?urlpath=lab) or locally with the official OSMnx [Docker image](https://hub.docker.com/r/gboeing/osmnx). All of the examples are in this repo's [notebooks](notebooks) folder. Note that this repo's main branch generally tracks the functionality of the OSMnx repo's main branch. For examples corresponding to previously released versions of OSMnx, use this repo's tags to browse by release. ### More info: -- [Overview of OSMnx](https://geoffboeing.com/2016/11/osmnx-python-street-networks/) -- [OSMnx repo](https://github.com/gboeing/osmnx) - [Documentation](https://osmnx.readthedocs.io/) -- [Journal article and citation info](https://geoffboeing.com/publications/osmnx-complex-street-networks/) +- [Journal article and citation info](https://geoffboeing.com/publications/osmnx-paper/) +- [Code repository](https://github.com/gboeing/osmnx) diff --git a/environment.yml b/environment.yml index ab2ae2a..39e4998 100644 --- a/environment.yml +++ b/environment.yml @@ -3,7 +3,7 @@ channels: - conda-forge dependencies: - jupyterlab - - osmnx=1.9.2 + - osmnx=1.9.3 - pillow - pre-commit - python=3.11.* From baec59c1e6c761eadcd04cb23cceb6cc3cf703df Mon Sep 17 00:00:00 2001 From: Geoff Boeing Date: Wed, 1 May 2024 19:58:20 -0700 Subject: [PATCH 3/4] update masthead --- notebooks/00-osmnx-features-demo.ipynb | 13 ++++++------- notebooks/01-overview-osmnx.ipynb | 11 +++++------ notebooks/02-routing-speed-time.ipynb | 11 +++++------ notebooks/03-graph-place-queries.ipynb | 11 +++++------ notebooks/04-simplify-graph-consolidate-nodes.ipynb | 11 +++++------ notebooks/05-save-load-networks.ipynb | 11 +++++------ notebooks/06-stats-indicators-centrality.ipynb | 11 +++++------ notebooks/07-plot-graph-over-shape.ipynb | 11 +++++------ notebooks/08-custom-filters-infrastructure.ipynb | 11 +++++------ notebooks/09-example-figure-ground.ipynb | 11 +++++------ notebooks/10-building-footprints.ipynb | 11 +++++------ notebooks/11-interactive-web-mapping.ipynb | 11 +++++------ notebooks/12-node-elevations-edge-grades.ipynb | 11 +++++------ notebooks/13-isolines-isochrones.ipynb | 11 +++++------ notebooks/14-osmnx-to-igraph.ipynb | 11 +++++------ notebooks/15-advanced-plotting.ipynb | 11 +++++------ notebooks/16-download-osm-geospatial-features.ipynb | 11 +++++------ notebooks/17-street-network-orientations.ipynb | 11 +++++------ 18 files changed, 91 insertions(+), 109 deletions(-) diff --git a/notebooks/00-osmnx-features-demo.ipynb b/notebooks/00-osmnx-features-demo.ipynb index ca3f3ba..b9358f9 100644 --- a/notebooks/00-osmnx-features-demo.ipynb +++ b/notebooks/00-osmnx-features-demo.ipynb @@ -8,15 +8,14 @@ "\n", "Author: [Geoff Boeing](https://geoffboeing.com/)\n", "\n", - "Get street networks and other spatial data anywhere in the world from OpenStreetMap then analyze and visualize them.\n", + "Model street networks and other geospatial features anywhere in the world from OpenStreetMap then analyze and visualize them.\n", "\n", "More info:\n", "\n", - " - [Overview of OSMnx](http://geoffboeing.com/2016/11/osmnx-python-street-networks/)\n", - " - [Documentation and install instructions](https://osmnx.readthedocs.io)\n", - " - [Examples, demos, tutorials](https://github.com/gboeing/osmnx-examples)\n", - " - [Journal article and citation info](http://geoffboeing.com/publications/osmnx-complex-street-networks/)\n", - " - [GitHub repo](https://github.com/gboeing/osmnx)\n", + " - [Documentation](https://osmnx.readthedocs.io/)\n", + " - [Journal article and citation info](https://geoffboeing.com/publications/osmnx-paper/)\n", + " - [Code repository](https://github.com/gboeing/osmnx)\n", + " - [Examples gallery](https://github.com/gboeing/osmnx-examples)\n", " \n", "This notebook provides a quick tour of some of OSMnx's key features including how to:\n", "\n", @@ -455,7 +454,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.8" + "version": "3.11.9" } }, "nbformat": 4, diff --git a/notebooks/01-overview-osmnx.ipynb b/notebooks/01-overview-osmnx.ipynb index 5526bc6..b1c0de6 100644 --- a/notebooks/01-overview-osmnx.ipynb +++ b/notebooks/01-overview-osmnx.ipynb @@ -8,11 +8,10 @@ "\n", "Author: [Geoff Boeing](https://geoffboeing.com/)\n", "\n", - " - [Overview of OSMnx](http://geoffboeing.com/2016/11/osmnx-python-street-networks/)\n", - " - [GitHub repo](https://github.com/gboeing/osmnx)\n", - " - [Examples, demos, tutorials](https://github.com/gboeing/osmnx-examples)\n", - " - [Documentation](https://osmnx.readthedocs.io/en/stable/)\n", - " - [Journal article/citation](http://geoffboeing.com/publications/osmnx-complex-street-networks/)\n", + " - [Documentation](https://osmnx.readthedocs.io/)\n", + " - [Journal article and citation info](https://geoffboeing.com/publications/osmnx-paper/)\n", + " - [Code repository](https://github.com/gboeing/osmnx)\n", + " - [Examples gallery](https://github.com/gboeing/osmnx-examples)\n", " \n", "Once you've perused the [features demo notebook](00-osmnx-features-demo.ipynb), this notebook demonstrates more details on querying for place boundaries and street networks, visualizing, and saving models to disk." ] @@ -485,7 +484,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.8" + "version": "3.11.9" } }, "nbformat": 4, diff --git a/notebooks/02-routing-speed-time.ipynb b/notebooks/02-routing-speed-time.ipynb index 03c68ab..e87989d 100644 --- a/notebooks/02-routing-speed-time.ipynb +++ b/notebooks/02-routing-speed-time.ipynb @@ -10,11 +10,10 @@ "\n", "Author: [Geoff Boeing](https://geoffboeing.com/)\n", "\n", - " - [Overview of OSMnx](http://geoffboeing.com/2016/11/osmnx-python-street-networks/)\n", - " - [GitHub repo](https://github.com/gboeing/osmnx)\n", - " - [Examples, demos, tutorials](https://github.com/gboeing/osmnx-examples)\n", - " - [Documentation](https://osmnx.readthedocs.io/en/stable/)\n", - " - [Journal article/citation](http://geoffboeing.com/publications/osmnx-complex-street-networks/)" + " - [Documentation](https://osmnx.readthedocs.io/)\n", + " - [Journal article and citation info](https://geoffboeing.com/publications/osmnx-paper/)\n", + " - [Code repository](https://github.com/gboeing/osmnx)\n", + " - [Examples gallery](https://github.com/gboeing/osmnx-examples)" ] }, { @@ -395,7 +394,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.8" + "version": "3.11.9" } }, "nbformat": 4, diff --git a/notebooks/03-graph-place-queries.ipynb b/notebooks/03-graph-place-queries.ipynb index 6c0d92c..d29ed85 100644 --- a/notebooks/03-graph-place-queries.ipynb +++ b/notebooks/03-graph-place-queries.ipynb @@ -8,11 +8,10 @@ "\n", "Author: [Geoff Boeing](https://geoffboeing.com/)\n", "\n", - " - [Overview of OSMnx](http://geoffboeing.com/2016/11/osmnx-python-street-networks/)\n", - " - [GitHub repo](https://github.com/gboeing/osmnx)\n", - " - [Examples, demos, tutorials](https://github.com/gboeing/osmnx-examples)\n", - " - [Documentation](https://osmnx.readthedocs.io/en/stable/)\n", - " - [Journal article/citation](http://geoffboeing.com/publications/osmnx-complex-street-networks/)\n", + " - [Documentation](https://osmnx.readthedocs.io/)\n", + " - [Journal article and citation info](https://geoffboeing.com/publications/osmnx-paper/)\n", + " - [Code repository](https://github.com/gboeing/osmnx)\n", + " - [Examples gallery](https://github.com/gboeing/osmnx-examples)\n", " \n", "Once you've perused the features demo and overview notebooks, this notebook provides further demonstration of querying by place name with OSMnx." ] @@ -343,7 +342,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.8" + "version": "3.11.9" } }, "nbformat": 4, diff --git a/notebooks/04-simplify-graph-consolidate-nodes.ipynb b/notebooks/04-simplify-graph-consolidate-nodes.ipynb index eee78d2..6ef55bb 100644 --- a/notebooks/04-simplify-graph-consolidate-nodes.ipynb +++ b/notebooks/04-simplify-graph-consolidate-nodes.ipynb @@ -8,11 +8,10 @@ "\n", "Author: [Geoff Boeing](https://geoffboeing.com/)\n", "\n", - " - [Overview of OSMnx](http://geoffboeing.com/2016/11/osmnx-python-street-networks/)\n", - " - [GitHub repo](https://github.com/gboeing/osmnx)\n", - " - [Examples, demos, tutorials](https://github.com/gboeing/osmnx-examples)\n", - " - [Documentation](https://osmnx.readthedocs.io/en/stable/)\n", - " - [Journal article/citation](http://geoffboeing.com/publications/osmnx-complex-street-networks/)" + " - [Documentation](https://osmnx.readthedocs.io/)\n", + " - [Journal article and citation info](https://geoffboeing.com/publications/osmnx-paper/)\n", + " - [Code repository](https://github.com/gboeing/osmnx)\n", + " - [Examples gallery](https://github.com/gboeing/osmnx-examples)" ] }, { @@ -234,7 +233,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.8" + "version": "3.11.9" } }, "nbformat": 4, diff --git a/notebooks/05-save-load-networks.ipynb b/notebooks/05-save-load-networks.ipynb index f51ffa9..e7dd3a3 100644 --- a/notebooks/05-save-load-networks.ipynb +++ b/notebooks/05-save-load-networks.ipynb @@ -8,11 +8,10 @@ "\n", "Author: [Geoff Boeing](https://geoffboeing.com/)\n", "\n", - " - [Overview of OSMnx](http://geoffboeing.com/2016/11/osmnx-python-street-networks/)\n", - " - [GitHub repo](https://github.com/gboeing/osmnx)\n", - " - [Examples, demos, tutorials](https://github.com/gboeing/osmnx-examples)\n", - " - [Documentation](https://osmnx.readthedocs.io/en/stable/)\n", - " - [Journal article/citation](http://geoffboeing.com/publications/osmnx-complex-street-networks/)\n", + " - [Documentation](https://osmnx.readthedocs.io/)\n", + " - [Journal article and citation info](https://geoffboeing.com/publications/osmnx-paper/)\n", + " - [Code repository](https://github.com/gboeing/osmnx)\n", + " - [Examples gallery](https://github.com/gboeing/osmnx-examples)\n", " \n", "This notebook demonstrates how to save networks to disk as GeoPackages, GraphML files, and .osm formatted XML, and how to load an OSMnx-created network from a GraphML file." ] @@ -183,7 +182,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.8" + "version": "3.11.9" } }, "nbformat": 4, diff --git a/notebooks/06-stats-indicators-centrality.ipynb b/notebooks/06-stats-indicators-centrality.ipynb index 5f661fa..8d78c1e 100644 --- a/notebooks/06-stats-indicators-centrality.ipynb +++ b/notebooks/06-stats-indicators-centrality.ipynb @@ -8,11 +8,10 @@ "\n", "Author: [Geoff Boeing](https://geoffboeing.com/)\n", "\n", - " - [Overview of OSMnx](http://geoffboeing.com/2016/11/osmnx-python-street-networks/)\n", - " - [GitHub repo](https://github.com/gboeing/osmnx)\n", - " - [Examples, demos, tutorials](https://github.com/gboeing/osmnx-examples)\n", - " - [Documentation](https://osmnx.readthedocs.io/en/stable/)\n", - " - [Journal article/citation](http://geoffboeing.com/publications/osmnx-complex-street-networks/)" + " - [Documentation](https://osmnx.readthedocs.io/)\n", + " - [Journal article and citation info](https://geoffboeing.com/publications/osmnx-paper/)\n", + " - [Code repository](https://github.com/gboeing/osmnx)\n", + " - [Examples gallery](https://github.com/gboeing/osmnx-examples)" ] }, { @@ -193,7 +192,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.8" + "version": "3.11.9" } }, "nbformat": 4, diff --git a/notebooks/07-plot-graph-over-shape.ipynb b/notebooks/07-plot-graph-over-shape.ipynb index 53cb9df..f296fdd 100644 --- a/notebooks/07-plot-graph-over-shape.ipynb +++ b/notebooks/07-plot-graph-over-shape.ipynb @@ -10,11 +10,10 @@ "\n", "This example uses Portland, Maine - a city with several islands within its municipal boundaries. Thus, we set `retain_all=True` when getting the network so that we keep all the graph components, not just the largest connected component.\n", "\n", - " - [Overview of OSMnx](http://geoffboeing.com/2016/11/osmnx-python-street-networks/)\n", - " - [GitHub repo](https://github.com/gboeing/osmnx)\n", - " - [Examples, demos, tutorials](https://github.com/gboeing/osmnx-examples)\n", - " - [Documentation](https://osmnx.readthedocs.io/en/stable/)\n", - " - [Journal article/citation](http://geoffboeing.com/publications/osmnx-complex-street-networks/)" + " - [Documentation](https://osmnx.readthedocs.io/)\n", + " - [Journal article and citation info](https://geoffboeing.com/publications/osmnx-paper/)\n", + " - [Code repository](https://github.com/gboeing/osmnx)\n", + " - [Examples gallery](https://github.com/gboeing/osmnx-examples)" ] }, { @@ -115,7 +114,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.8" + "version": "3.11.9" } }, "nbformat": 4, diff --git a/notebooks/08-custom-filters-infrastructure.ipynb b/notebooks/08-custom-filters-infrastructure.ipynb index 7ecee7b..652e544 100644 --- a/notebooks/08-custom-filters-infrastructure.ipynb +++ b/notebooks/08-custom-filters-infrastructure.ipynb @@ -10,11 +10,10 @@ "\n", "Use OSMnx to download and visualize a power line network and a subway system.\n", "\n", - " - [Overview of OSMnx](http://geoffboeing.com/2016/11/osmnx-python-street-networks/)\n", - " - [GitHub repo](https://github.com/gboeing/osmnx)\n", - " - [Examples, demos, tutorials](https://github.com/gboeing/osmnx-examples)\n", - " - [Documentation](https://osmnx.readthedocs.io/en/stable/)\n", - " - [Journal article/citation](http://geoffboeing.com/publications/osmnx-complex-street-networks/)" + " - [Documentation](https://osmnx.readthedocs.io/)\n", + " - [Journal article and citation info](https://geoffboeing.com/publications/osmnx-paper/)\n", + " - [Code repository](https://github.com/gboeing/osmnx)\n", + " - [Examples gallery](https://github.com/gboeing/osmnx-examples)" ] }, { @@ -138,7 +137,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.8" + "version": "3.11.9" } }, "nbformat": 4, diff --git a/notebooks/09-example-figure-ground.ipynb b/notebooks/09-example-figure-ground.ipynb index befd001..dfee892 100644 --- a/notebooks/09-example-figure-ground.ipynb +++ b/notebooks/09-example-figure-ground.ipynb @@ -10,11 +10,10 @@ "\n", "Use OSMnx to download square-mile city street networks and visualize them as figure-ground diagrams. Discussed in this [blog post](http://geoffboeing.com/2017/01/square-mile-street-network-visualization/).\n", "\n", - " - [Overview of OSMnx](http://geoffboeing.com/2016/11/osmnx-python-street-networks/)\n", - " - [GitHub repo](https://github.com/gboeing/osmnx)\n", - " - [Examples, demos, tutorials](https://github.com/gboeing/osmnx-examples)\n", - " - [Documentation](https://osmnx.readthedocs.io/en/stable/)\n", - " - [Journal article/citation](http://geoffboeing.com/publications/osmnx-complex-street-networks/)" + " - [Documentation](https://osmnx.readthedocs.io/)\n", + " - [Journal article and citation info](https://geoffboeing.com/publications/osmnx-paper/)\n", + " - [Code repository](https://github.com/gboeing/osmnx)\n", + " - [Examples gallery](https://github.com/gboeing/osmnx-examples)" ] }, { @@ -384,7 +383,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.8" + "version": "3.11.9" } }, "nbformat": 4, diff --git a/notebooks/10-building-footprints.ipynb b/notebooks/10-building-footprints.ipynb index 5fed42d..e573d7d 100644 --- a/notebooks/10-building-footprints.ipynb +++ b/notebooks/10-building-footprints.ipynb @@ -10,11 +10,10 @@ "\n", "Use OSMnx to download OpenStreetMap building footprints and visualize them as figure-ground diagrams.\n", "\n", - " - [Overview of OSMnx](http://geoffboeing.com/2016/11/osmnx-python-street-networks/)\n", - " - [GitHub repo](https://github.com/gboeing/osmnx)\n", - " - [Examples, demos, tutorials](https://github.com/gboeing/osmnx-examples)\n", - " - [Documentation](https://osmnx.readthedocs.io/en/stable/)\n", - " - [Journal article/citation](http://geoffboeing.com/publications/osmnx-complex-street-networks/)" + " - [Documentation](https://osmnx.readthedocs.io/)\n", + " - [Journal article and citation info](https://geoffboeing.com/publications/osmnx-paper/)\n", + " - [Code repository](https://github.com/gboeing/osmnx)\n", + " - [Examples gallery](https://github.com/gboeing/osmnx-examples)" ] }, { @@ -277,7 +276,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.8" + "version": "3.11.9" } }, "nbformat": 4, diff --git a/notebooks/11-interactive-web-mapping.ipynb b/notebooks/11-interactive-web-mapping.ipynb index eb4d62a..abcb80c 100644 --- a/notebooks/11-interactive-web-mapping.ipynb +++ b/notebooks/11-interactive-web-mapping.ipynb @@ -10,11 +10,10 @@ "\n", "Use OSMnx to download a street network, calculate a route between two points, and create a Leaflet web map using GeoPandas [explore](https://geopandas.org/en/stable/docs/reference/api/geopandas.GeoDataFrame.explore.html). See the GeoPandas documentation for more style details.\n", "\n", - " - [Overview of OSMnx](http://geoffboeing.com/2016/11/osmnx-python-street-networks/)\n", - " - [GitHub repo](https://github.com/gboeing/osmnx)\n", - " - [Examples, demos, tutorials](https://github.com/gboeing/osmnx-examples)\n", - " - [Documentation](https://osmnx.readthedocs.io/en/stable/)\n", - " - [Journal article/citation](http://geoffboeing.com/publications/osmnx-complex-street-networks/)" + " - [Documentation](https://osmnx.readthedocs.io/)\n", + " - [Journal article and citation info](https://geoffboeing.com/publications/osmnx-paper/)\n", + " - [Code repository](https://github.com/gboeing/osmnx)\n", + " - [Examples gallery](https://github.com/gboeing/osmnx-examples)" ] }, { @@ -287,7 +286,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.8" + "version": "3.11.9" } }, "nbformat": 4, diff --git a/notebooks/12-node-elevations-edge-grades.ipynb b/notebooks/12-node-elevations-edge-grades.ipynb index 853ac9e..2455675 100644 --- a/notebooks/12-node-elevations-edge-grades.ipynb +++ b/notebooks/12-node-elevations-edge-grades.ipynb @@ -8,11 +8,10 @@ "\n", "Author: [Geoff Boeing](https://geoffboeing.com/)\n", "\n", - " - [Overview of OSMnx](http://geoffboeing.com/2016/11/osmnx-python-street-networks/)\n", - " - [GitHub repo](https://github.com/gboeing/osmnx)\n", - " - [Examples, demos, tutorials](https://github.com/gboeing/osmnx-examples)\n", - " - [Documentation](https://osmnx.readthedocs.io/en/stable/)\n", - " - [Journal article/citation](http://geoffboeing.com/publications/osmnx-complex-street-networks/)\n", + " - [Documentation](https://osmnx.readthedocs.io/)\n", + " - [Journal article and citation info](https://geoffboeing.com/publications/osmnx-paper/)\n", + " - [Code repository](https://github.com/gboeing/osmnx)\n", + " - [Examples gallery](https://github.com/gboeing/osmnx-examples)\n", "\n", "OSMnx allows you to automatically add elevation attributes to your graph's nodes with the `elevation` module, using either local raster files or the Google Maps Elevation API as the elevation data source. If you use the Google API, you will need an API key. Once your nodes have elevation values, OSMnx can automatically calculate your edges' grades (inclines)." ] @@ -359,7 +358,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.8" + "version": "3.11.9" } }, "nbformat": 4, diff --git a/notebooks/13-isolines-isochrones.ipynb b/notebooks/13-isolines-isochrones.ipynb index 93ae331..4fbb305 100644 --- a/notebooks/13-isolines-isochrones.ipynb +++ b/notebooks/13-isolines-isochrones.ipynb @@ -10,11 +10,10 @@ "\n", "How far can you travel on foot in 15 minutes?\n", "\n", - " - [Overview of OSMnx](http://geoffboeing.com/2016/11/osmnx-python-street-networks/)\n", - " - [GitHub repo](https://github.com/gboeing/osmnx)\n", - " - [Examples, demos, tutorials](https://github.com/gboeing/osmnx-examples)\n", - " - [Documentation](https://osmnx.readthedocs.io/en/stable/)\n", - " - [Journal article/citation](http://geoffboeing.com/publications/osmnx-complex-street-networks/)" + " - [Documentation](https://osmnx.readthedocs.io/)\n", + " - [Journal article and citation info](https://geoffboeing.com/publications/osmnx-paper/)\n", + " - [Code repository](https://github.com/gboeing/osmnx)\n", + " - [Examples gallery](https://github.com/gboeing/osmnx-examples)" ] }, { @@ -249,7 +248,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.8" + "version": "3.11.9" } }, "nbformat": 4, diff --git a/notebooks/14-osmnx-to-igraph.ipynb b/notebooks/14-osmnx-to-igraph.ipynb index bcb29ab..3ab739b 100644 --- a/notebooks/14-osmnx-to-igraph.ipynb +++ b/notebooks/14-osmnx-to-igraph.ipynb @@ -12,11 +12,10 @@ "\n", "First install [igraph](https://igraph.org/python/) or run Jupyter from the [Docker container](https://hub.docker.com/r/gboeing/osmnx) (which already has it installed along with OSMnx and NetworkX).\n", "\n", - " - [Overview of OSMnx](http://geoffboeing.com/2016/11/osmnx-python-street-networks/)\n", - " - [GitHub repo](https://github.com/gboeing/osmnx)\n", - " - [Examples, demos, tutorials](https://github.com/gboeing/osmnx-examples)\n", - " - [Documentation](https://osmnx.readthedocs.io/en/stable/)\n", - " - [Journal article/citation](http://geoffboeing.com/publications/osmnx-complex-street-networks/)" + " - [Documentation](https://osmnx.readthedocs.io/)\n", + " - [Journal article and citation info](https://geoffboeing.com/publications/osmnx-paper/)\n", + " - [Code repository](https://github.com/gboeing/osmnx)\n", + " - [Examples gallery](https://github.com/gboeing/osmnx-examples)" ] }, { @@ -224,7 +223,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.8" + "version": "3.11.9" } }, "nbformat": 4, diff --git a/notebooks/15-advanced-plotting.ipynb b/notebooks/15-advanced-plotting.ipynb index c838654..5262d37 100644 --- a/notebooks/15-advanced-plotting.ipynb +++ b/notebooks/15-advanced-plotting.ipynb @@ -8,11 +8,10 @@ "\n", "Author: [Geoff Boeing](https://geoffboeing.com/)\n", "\n", - " - [Overview of OSMnx](http://geoffboeing.com/2016/11/osmnx-python-street-networks/)\n", - " - [GitHub repo](https://github.com/gboeing/osmnx)\n", - " - [Examples, demos, tutorials](https://github.com/gboeing/osmnx-examples)\n", - " - [Documentation](https://osmnx.readthedocs.io/en/stable/)\n", - " - [Journal article/citation](http://geoffboeing.com/publications/osmnx-complex-street-networks/)" + " - [Documentation](https://osmnx.readthedocs.io/)\n", + " - [Journal article and citation info](https://geoffboeing.com/publications/osmnx-paper/)\n", + " - [Code repository](https://github.com/gboeing/osmnx)\n", + " - [Examples gallery](https://github.com/gboeing/osmnx-examples)" ] }, { @@ -331,7 +330,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.8" + "version": "3.11.9" } }, "nbformat": 4, diff --git a/notebooks/16-download-osm-geospatial-features.ipynb b/notebooks/16-download-osm-geospatial-features.ipynb index 117a7dc..5c572de 100644 --- a/notebooks/16-download-osm-geospatial-features.ipynb +++ b/notebooks/16-download-osm-geospatial-features.ipynb @@ -10,11 +10,10 @@ "\n", "More info:\n", "\n", - " - [Overview of OSMnx](http://geoffboeing.com/2016/11/osmnx-python-street-networks/)\n", - " - [Documentation and install instructions](https://osmnx.readthedocs.io)\n", - " - [Examples, demos, tutorials](https://github.com/gboeing/osmnx-examples)\n", - " - [Journal article and citation info](http://geoffboeing.com/publications/osmnx-complex-street-networks/)\n", - " - [GitHub repo](https://github.com/gboeing/osmnx)\n", + " - [Documentation](https://osmnx.readthedocs.io/)\n", + " - [Journal article and citation info](https://geoffboeing.com/publications/osmnx-paper/)\n", + " - [Code repository](https://github.com/gboeing/osmnx)\n", + " - [Examples gallery](https://github.com/gboeing/osmnx-examples)\n", " \n", "This notebook provides a quick tour of using OSMnx to download any geospatial features from OpenStreetMap as a geopandas GeoDataFrame." ] @@ -138,7 +137,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.8" + "version": "3.11.9" } }, "nbformat": 4, diff --git a/notebooks/17-street-network-orientations.ipynb b/notebooks/17-street-network-orientations.ipynb index 93017c4..e55bb83 100644 --- a/notebooks/17-street-network-orientations.ipynb +++ b/notebooks/17-street-network-orientations.ipynb @@ -10,11 +10,10 @@ "\n", "Compare the spatial orientations of city street networks with OSMnx.\n", "\n", - " - [Overview of OSMnx](http://geoffboeing.com/2016/11/osmnx-python-street-networks/)\n", - " - [GitHub repo](https://github.com/gboeing/osmnx)\n", - " - [Examples, demos, tutorials](https://github.com/gboeing/osmnx-examples)\n", - " - [Documentation](https://osmnx.readthedocs.io/en/stable/)\n", - " - [Journal article/citation](http://geoffboeing.com/publications/osmnx-complex-street-networks/)" + " - [Documentation](https://osmnx.readthedocs.io/)\n", + " - [Journal article and citation info](https://geoffboeing.com/publications/osmnx-paper/)\n", + " - [Code repository](https://github.com/gboeing/osmnx)\n", + " - [Examples gallery](https://github.com/gboeing/osmnx-examples)" ] }, { @@ -146,7 +145,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.8" + "version": "3.11.9" } }, "nbformat": 4, From 03cb49f45ae3b9dcd14e66e4049e8c12602af311 Mon Sep 17 00:00:00 2001 From: Geoff Boeing Date: Wed, 1 May 2024 20:04:36 -0700 Subject: [PATCH 4/4] fix bug --- notebooks/02-routing-speed-time.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notebooks/02-routing-speed-time.ipynb b/notebooks/02-routing-speed-time.ipynb index e87989d..55f5c4c 100644 --- a/notebooks/02-routing-speed-time.ipynb +++ b/notebooks/02-routing-speed-time.ipynb @@ -226,8 +226,8 @@ "source": [ "# compare the two routes\n", "route1_length = int(sum(ox.routing.route_to_gdf(G, route1, weight=\"length\")[\"length\"]))\n", - "route2_length = int(sum(ox.routing.route_to_gdf(G, route2, weight=\"length\")[\"length\"]))\n", - "route1_time = int(sum(ox.routing.route_to_gdf(G, route1, weight=\"travel_time\")[\"travel_time\"]))\n", + "route2_length = int(sum(ox.routing.route_to_gdf(G, route2, weight=\"travel_time\")[\"length\"]))\n", + "route1_time = int(sum(ox.routing.route_to_gdf(G, route1, weight=\"length\")[\"travel_time\"]))\n", "route2_time = int(sum(ox.routing.route_to_gdf(G, route2, weight=\"travel_time\")[\"travel_time\"]))\n", "print(\"Route 1 is\", route1_length, \"meters and takes\", route1_time, \"seconds.\")\n", "print(\"Route 2 is\", route2_length, \"meters and takes\", route2_time, \"seconds.\")"