Skip to content

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

License

Notifications You must be signed in to change notification settings

owenlamont/photo_to_map

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published