Building an Interactive Python Map (Pt 2) - Google Maps API
Building an Interactive Python Map (Part 2). In this video I cover how to use the Google Maps Directions API, to retrieve location data and to retrieve distances between points. After writing a few useful functions in Python, I pull it all together, along with the football team data from Part 1 of this series to get the locations and distances away from every single football team! If you'd like to check out the code and Jupyter Notebook to follow along, you can view it on Github here: https://github.com/leej11/efl_mapping/blob/master/02_google_maps_api.ipynb Building an Interactive Python Map Playlist | https://www.youtube.com/playlist?list=PLYhUEQbs6PyTu6uIElQebUebOwAM5DUsn 0:00 Introduction 0:35 Starting with Google Maps APIs 1:03 What is an API? 1:49 Getting your API Key 3:36 Writing a function to query the API 6:59 Writing helper functions to extract data 9:22 Pulling it together with EFL teams 11:39 The end result 11:49 What's next? ▬▬▬▬▬▬▬▬▬▬Follow me▬▬▬▬▬▬▬▬▬▬ 📺 Youtube: https://www.youtube.com/user/MrLeej11?sub_confirmation=1 📚 Blog: https://www.liamgower.com/ ✨Instagram: https://www.instagram.com/leejghd ▬▬▬▬▬▬▬▬▬▬Videos You Might Like▬▬▬▬▬▬▬▬▬▬ Learning Code with Anki | https://www.youtube.com/watch?v=lw5HsaFswEQ Learning Code with RemNote | https://www.youtube.com/watch?v=1mJKMNpwSiA&t=2s ▬▬▬▬▬▬▬▬▬▬Useful Links for This Video▬▬▬▬▬▬▬▬▬▬ Build an Interactive Python Map (My Blog Post): https://www.liamgower.com/blog/python-mapping-football-clubs EFL Championship Club Data (Wikipedia): https://en.wikipedia.org/wiki/EFL_Championship What is an API?: https://www.freecodecamp.org/news/what-is-an-api-in-english-please-b880a3214a82/ Google Maps API Platform: https://developers.google.com/maps/documentation Google Maps Directions API: https://developers.google.com/maps/documentation/directions/overview ▬▬▬▬▬▬▬▬▬▬Series Background▬▬▬▬▬▬▬▬▬▬ Back in 2015 my local football club, AFC Bournemouth, were promoted to the English Premier League, the highest tier of English football. This year, after 5 years in the league, we were relegated back to the 2nd tier of English football, called the EFL Championship. I was upset at the prospect of no longer watching my team play the most elite clubs in England, but I thought to myself how can I turn this into a positive? “Ooo, maybe I could do something as a Python project?” After a few evenings of tinkering around, I had built an interactive map of all the EFL Championship football teams. I realise I may have lost all non-football fans by now, but in this series of videos I want to share my approach to this project. From my personal experience in learning Python, I’ve found hundreds and hundreds of courses that teach you Python fundamentals, concepts, libraries and so on, but what is lacking is examples of projects. I find you can draw a lot of inspiration from how people write their own code and how they use Python to build projects that interest them. So consider this my attempt to fill that educational gap! This project covers A LOT of different skills that may be useful for people learning about Python, Data Science or Data Analysis! So stick with me, it’s not all football! #python #api #maps python,google maps,google maps api,directions api,google api,apis,plotting locations,data visualisation,requests,plots,programming,how to use google maps api,learn python,how to plot
Download
0 formatsNo download links available.