owenlamont / photo_to_map

Example Jupyter Notebook to add photos with location meta data to a leaflet map

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

photo_to_map

Example Jupyter Notebook to read a directory of photos (jpgs) with location meta data and add popups for each photo to a leaflet map.

photo_to_map.mp4

Acknowledgements / Attribution

I got the idea for this notebook after listening to Christopher Bailey on the Real Python Podcast episode 45 where I learnt that not only can Pillow edit and convert images but read the EXIF meta data too.

I copied the functions for extracting the latitude and longitude from this gist and one of its forks. I used some example code from this ipyleaflet issue comment for how to convert the image to binary format to embed in the popup html.

About

Example Jupyter Notebook to add photos with location meta data to a leaflet map

License:MIT License


Languages

Language:Jupyter Notebook 100.0%