Skip to content

Commit

Permalink
DOC: more osmnx compat (#670)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinfleis authored Nov 25, 2024
1 parent 92222c1 commit 4550d91
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions docs/user_guide/graph/coins.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": null,
"id": "9acb45e4-2074-4a0c-95e6-f8fb2269da0f",
"metadata": {
"execution": {
Expand All @@ -456,7 +456,7 @@
"streets_graph = ox.projection.project_graph(streets_graph)\n",
"\n",
"streets = ox.graph_to_gdfs(\n",
" ox.get_undirected(streets_graph),\n",
" ox.convert.to_undirected(streets_graph),\n",
" nodes=False,\n",
" edges=True,\n",
" node_geometry=False,\n",
Expand Down
4 changes: 2 additions & 2 deletions docs/user_guide/preprocessing/consolidate_intersections.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"id": "77447ca3-58f2-4bfb-819d-035817bfbca7",
"metadata": {
"execution": {
Expand Down Expand Up @@ -104,7 +104,7 @@
" (40.783169, -73.978315), dist=500, network_type=\"drive\"\n",
")\n",
"graph_projected = ox.project_graph(graph)\n",
"graph_undirected = ox.get_undirected(graph_projected)\n",
"graph_undirected = ox.convert.to_undirected(graph_projected)\n",
"\n",
"fig, ax = ox.plot_graph(graph_undirected)"
]
Expand Down
10 changes: 5 additions & 5 deletions docs/user_guide/preprocessing/roundabout_simplification.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"metadata": {
"execution": {
"iopub.execute_input": "2024-06-14T22:02:49.232043Z",
Expand Down Expand Up @@ -240,13 +240,13 @@
"source": [
"place = \"Chamberi, Madrid\"\n",
"\n",
"G = ox.graph_from_place(\n",
" place, network_type=\"drive\", simplify=True, buffer_dist=200\n",
")\n",
"G = ox.graph_from_place(place, network_type=\"drive\", simplify=True)\n",
"G_projected = ox.project_graph(G)\n",
"\n",
"edges = ox.graph_to_gdfs(\n",
" ox.get_undirected(G_projected), # prevents some (semi)duplicate geometries\n",
" ox.convert.to_undirected(\n",
" G_projected\n",
" ), # prevents some (semi)duplicate geometries\n",
" nodes=False,\n",
" edges=True,\n",
" node_geometry=False,\n",
Expand Down

0 comments on commit 4550d91

Please sign in to comment.