Skip to content

Commit

Permalink
Update w09_advanced.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
g-filomena committed Apr 16, 2024
1 parent 821686d commit 2a41f5c
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions labs/w09_advanced.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,6 @@
"warnings.filterwarnings('ignore')"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
Expand All @@ -85,10 +78,8 @@
]
},
{
"cell_type": "code",
"execution_count": 3,
"cell_type": "markdown",
"metadata": {},
"outputs": [],
"source": [
"def bbox_to_osm_format(bbox):\n",
" \"\"\"\n",
Expand All @@ -113,7 +104,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Now trying to get data around Liverpool Campus. Feel free to change area."
"We can try to get OSM traces around the Uni of Liverpool Campus. Feel free to change the area."
]
},
{
Expand All @@ -134,6 +125,15 @@
"bbox = bbox_to_osm_format(bbox) # needs to be {west},{south},{east},{north} for OSM Api"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The `get_osm_traces` function below retrieves GPS traces from OpenStreetMap within a specified bounding box, processing up to a user-defined maximum number of pages. It uses a while loop to fetch and parse GPS data into GeoDataFrames, querying the OSM API by incrementally updating the page number until no more data is available or the maximum page limit is reached.\n",
"\n",
"Upon fetching the data, the function concatenates these individual GeoDataFrames into a single comprehensive GeoDataFrame. Before returning the final GeoDataFrame, it cleans the dataset by dropping a predefined list of potentially irrelevant or empty columns."
]
},
{
"cell_type": "code",
"execution_count": 5,
Expand Down Expand Up @@ -198,7 +198,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"We initial download 2 pages of GSP traces. We can try with higher numbers to get more data. More recent traces are downloaded first."
"We initially download 2 pages of GSP traces. We can try with higher numbers to get more data. More recent traces are downloaded first."
]
},
{
Expand Down Expand Up @@ -1336,7 +1336,7 @@
"metadata": {},
"source": [
"## Animations in Folium\n",
"### Animating a GPS track"
"### Animating GPS tracks"
]
},
{
Expand Down

0 comments on commit 2a41f5c

Please sign in to comment.