diff --git a/labs/w09_advanced.ipynb b/labs/w09_advanced.ipynb index f480035..985f4d4 100644 --- a/labs/w09_advanced.ipynb +++ b/labs/w09_advanced.ipynb @@ -56,13 +56,6 @@ "warnings.filterwarnings('ignore')" ] }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - }, { "cell_type": "markdown", "metadata": {}, @@ -85,10 +78,8 @@ ] }, { - "cell_type": "code", - "execution_count": 3, + "cell_type": "markdown", "metadata": {}, - "outputs": [], "source": [ "def bbox_to_osm_format(bbox):\n", " \"\"\"\n", @@ -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." ] }, { @@ -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, @@ -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." ] }, { @@ -1336,7 +1336,7 @@ "metadata": {}, "source": [ "## Animations in Folium\n", - "### Animating a GPS track" + "### Animating GPS tracks" ] }, {