The process described here produced the website Cats of Marrakech. It took less than an hour from downloading the images to a laptop to a live map with clickable pins. The workflow requires no prior coding knowledge and generalizes to any collection of geolocated images — field photographs, pilgrimage routes, urban documentation surveys.
During Spring Break, I traveled to Marrakech and photographed street cats throughout the medina. With location services enabled in the phone’s Camera app, GPS coordinates were embedded in the metadata of every image. By the end of the trip, I had over 200 photos — and 200 precise locations.
After copying the photos into an assets/images folder in a GitHub repository, I described the goal to GitHub Copilot in plain language. Copilot wrote all the necessary code: a YAML data file extracting GPS coordinates from each image’s metadata, and an updated map.html that reads that file and places a clickable pin for each photo. No manual data entry, no coordinate lookup, no JavaScript written by hand.
Geolocation data from phones is sometimes imprecise at the street level. Photos taken inside buildings may have pins placed across the street or several meters off. This is a limitation of phone GPS rather than the workflow itself — but it matters if spatial precision is central to the research question.