In this tutorial, we will explore the concept of geocoding in Python through a practical application.
Geocoding is the process of converting place names and addresses into latitude and longitude coordinates. The reverse process, generating addresses from coordinate information, is called reverse geocoding. In this tutorial, we focus on the first approach (geocoding).
Using a data table from Wikipedia that lists the most visited museums in the world, we will use the Nominatim API, which accesses OpenStreetMap data, to retrieve latitude and longitude coordinates and plot them on an interactive Leaflet map using Python's Folium library. Along with the process of reading data with Python's Pandas library and preparing it for this exercise, we will cover various data cleaning and transformation steps. If you are interested in learning how to perform data cleaning and wrangling, this tutorial will be exciting for you as well.
Mist visited museums in the world - https://en.wikipedia.org/wiki/List_of_most-visited_museums
Download the python script (.py) and/or iPython Notebook (.ipynb) - https://drive.google.com/drive/folders/183cH0XII_AZ3LwN0xwNZD8sJTndJ3i8s?usp=sharing
Here's the timeline:
00:00 - Introduction, Data Cleaning and Transformations
17:00 - Retrieving Coordinate Information using the Geocoder
42:00 - Plotting the Data on an Interactive Map