Skip to content

Feat: Add interactive map view to visualize geotagged photos on Memories page #840

@yugalkaushik

Description

@yugalkaushik

Describe the feature

Problem Statement

Right now, we are extracting GPS coordinates from photo EXIF data but not doing anything useful with them. The location information just sits in the database unused, and the Memories page literally renders nothing (<></> in Memories.tsx).

This results in wasted metadata that users would actually find valuable. Being able to view where photos were taken is a standard and expected feature in modern photo applications.

Current Implementation

The GPS data extraction is already working.

Backend

_extract_gps_coordinates(exif_data) function:

  • Pulls GPS information from photo EXIF tags
  • Extracts latitude and longitude in DMS (degrees, minutes, seconds) format
  • Returns a tuple (latitude, longitude) or (None, None) if no GPS data is present
  • Location data is stored in the images table under the metadata column (JSON text)

Frontend

TypeScript types already support location metadata in Media.ts

Despite having:

  • GPS extraction logic
  • Database storage
  • Frontend type support
    …the data is never surfaced to users.

The Memories page is currently just a placeholder and renders nothing, making all the extracted location metadata effectively unused.

What Should Be Built

An interactive map on the Memories page that enables users to explore their photos geographically.

Required Features

  • Display all photos with GPS data plotted on a map
  • Cluster nearby photos to avoid overwhelming the map with markers
  • Clicking a marker should show the photos taken at that location
  • Filter photos by date range
  • Zoom in/out to switch between detailed and overview levels

Record

  • I agree to follow this project's Code of Conduct
  • I want to work on this issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions