Skip to content

Commit

Permalink
updates for v0.14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gboeing committed Jan 18, 2021
1 parent 8ce23b6 commit 88e9bb7
Show file tree
Hide file tree
Showing 13 changed files with 18 additions and 7 deletions.
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ channels:
- conda-forge
- defaults
dependencies:
- osmnx=0.13.0
- osmnx=0.14.0
3 changes: 2 additions & 1 deletion notebooks/00-osmnx-features-demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"import requests\n",
"import matplotlib.cm as cm\n",
"import matplotlib.colors as colors\n",
"%matplotlib inline\n",
"ox.config(use_cache=True, log_console=True)\n",
"ox.__version__"
]
Expand Down Expand Up @@ -315,7 +316,7 @@
"# get NY subway rail network\n",
"G = ox.graph_from_place('New York City, New York',\n",
" retain_all=False, truncate_by_edge=True, simplify=True,\n",
" network_type='none', custom_filter='[\"railway\"~\"subway\"]')\n",
" custom_filter='[\"railway\"~\"subway\"]')\n",
"\n",
"fig, ax = ox.plot_graph(G, node_size=0, edge_color='w', edge_linewidth=0.2, bgcolor='k')"
]
Expand Down
3 changes: 2 additions & 1 deletion notebooks/01-overview-osmnx.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"source": [
"import geopandas as gpd\n",
"import osmnx as ox\n",
"%matplotlib inline\n",
"ox.config(log_console=True, use_cache=True)\n",
"ox.__version__"
]
Expand Down Expand Up @@ -417,7 +418,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"In this street network, the streets are ~13% more circuitous than the straight-lines paths would be.\n",
"In this street network, the streets are ~22% more circuitous than the straight-lines paths would be.\n",
"\n",
"For examples of analyzing street networks, see [this example](06-stats-indicators-centrality.ipynb)."
]
Expand Down
6 changes: 4 additions & 2 deletions notebooks/02-routing-speed-time.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
"source": [
"import networkx as nx\n",
"import osmnx as ox\n",
"ox.config(use_cache=True, log_console=True)"
"%matplotlib inline\n",
"ox.config(use_cache=True, log_console=True)\n",
"ox.__version__"
]
},
{
Expand All @@ -32,7 +34,7 @@
"metadata": {},
"outputs": [],
"source": [
"place = 'Piedmont, CA, USA'\n",
"place = 'Piedmont, California, USA'\n",
"G = ox.graph_from_place(place, network_type='drive')"
]
},
Expand Down
1 change: 1 addition & 0 deletions notebooks/07-plot-graph-over-shape.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"import osmnx as ox\n",
"from descartes import PolygonPatch\n",
"from shapely.geometry import Polygon, MultiPolygon\n",
"%matplotlib inline\n",
"ox.config(log_console=True, use_cache=True)\n",
"ox.__version__"
]
Expand Down
1 change: 1 addition & 0 deletions notebooks/08-custom-filters-infrastructure.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"outputs": [],
"source": [
"import osmnx as ox\n",
"%matplotlib inline\n",
"ox.config(use_cache=True, log_console=True)\n",
"ox.__version__"
]
Expand Down
1 change: 1 addition & 0 deletions notebooks/09-example-figure-ground.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"source": [
"import osmnx as ox\n",
"from IPython.display import Image\n",
"%matplotlib inline\n",
"ox.config(log_console=True, use_cache=True)\n",
"ox.__version__"
]
Expand Down
1 change: 1 addition & 0 deletions notebooks/10-building-footprints.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"import matplotlib.pyplot as plt\n",
"import osmnx as ox\n",
"from IPython.display import Image\n",
"%matplotlib inline\n",
"ox.config(log_console=True, use_cache=True)\n",
"ox.__version__"
]
Expand Down
1 change: 1 addition & 0 deletions notebooks/11-plot-routes-folium-web-map.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"import networkx as nx\n",
"import osmnx as ox\n",
"from IPython.display import IFrame\n",
"%matplotlib inline\n",
"ox.config(log_console=True, use_cache=True)\n",
"ox.__version__"
]
Expand Down
1 change: 1 addition & 0 deletions notebooks/12-node-elevations-edge-grades.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"import networkx as nx\n",
"import numpy as np\n",
"import osmnx as ox\n",
"%matplotlib inline\n",
"ox.config(log_console=True, use_cache=True)\n",
"ox.__version__"
]
Expand Down
1 change: 1 addition & 0 deletions notebooks/13-isolines-isochrones.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"import osmnx as ox\n",
"from descartes import PolygonPatch\n",
"from shapely.geometry import Point, LineString, Polygon\n",
"%matplotlib inline\n",
"ox.config(log_console=True, use_cache=True)\n",
"ox.__version__"
]
Expand Down
2 changes: 1 addition & 1 deletion notebooks/14-osmnx-to-igraph.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"import numpy as np\n",
"import operator\n",
"import osmnx as ox\n",
"\n",
"%matplotlib inline\n",
"ox.config(use_cache=True, log_console=True)\n",
"weight = 'length'\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/17-street-network-orientations.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"import numpy as np\n",
"import osmnx as ox\n",
"import pandas as pd\n",
"\n",
"%matplotlib inline\n",
"ox.config(log_console=True, use_cache=True)\n",
"weight_by_length = False\n",
"\n",
Expand Down

0 comments on commit 88e9bb7

Please sign in to comment.