Skip to content

Commit

Permalink
tiny edits to ch 9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
VuokkoH committed Feb 2, 2025
1 parent 75b673c commit d1a70c3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions source/part2/chapter-09/md/00-retrieving-osm-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ From here we can see that our graph contains nodes (the points) and edges (the l

For now, we are only interested in the geometry and attributes of the street network and will convert the streets (edges of the network) into a `GeoDataFrame` using the `osmnx` function `graph_to_gdfs()`.

```python
```python editable=true slideshow={"slide_type": ""}
edges = ox.convert.graph_to_gdfs(graph, nodes=False, edges=True)
edges.head(2)
```
Expand Down Expand Up @@ -298,7 +298,7 @@ Check your understanding and retrieve OpenStreetMap data from some other area in
- Restaurants and cafes (or why not also other amenities)
- Green spaces

Note, the larger the area you choose, the longer it takes to retrieve data from the API! When fetching the street network, you can use parameter `network_type=drive` to limit the graph query to filter out un-driveable roads.
Note that the larger the area you choose, the longer it takes to retrieve data from the API! When fetching the street network, you can use parameter `network_type=drive` to limit the graph query to filter out un-driveable roads.

```python editable=true slideshow={"slide_type": ""} tags=["remove_cell"]
# Use this cell to enter your solution.
Expand Down
10 changes: 8 additions & 2 deletions source/part2/chapter-09/nb/00-retrieving-osm-data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,13 @@
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"metadata": {
"editable": true,
"slideshow": {
"slide_type": ""
},
"tags": []
},
"outputs": [
{
"data": {
Expand Down Expand Up @@ -1392,7 +1398,7 @@
"- Restaurants and cafes (or why not also other amenities)\n",
"- Green spaces\n",
"\n",
"Note, the larger the area you choose, the longer it takes to retrieve data from the API! When fetching the street network, you can use parameter `network_type=drive` to limit the graph query to filter out un-driveable roads."
"Note that the larger the area you choose, the longer it takes to retrieve data from the API! When fetching the street network, you can use parameter `network_type=drive` to limit the graph query to filter out un-driveable roads."
]
},
{
Expand Down

0 comments on commit d1a70c3

Please sign in to comment.