Skip to content
TriedPrompts

More in Family history.

Add dates and map locations to a father's captioned family photos with ChatGPT

bobchadwick had ChatGPT add dates and coordinates from a father's photo captions, so Google Photos now maps the family's road trips.

Result: WorkedTool: ChatGPTLevel: AdvancedSetup: Needs Python

Copy the prompt

Outcome

The father of Hacker News commenter bobchadwick was a prolific family photographer who cataloged the photos in a spreadsheet (first made on the family's Compaq Portable) with descriptions, dates and the people in each one. A few years ago, as family Christmas presents, the parents had the photos digitized and had that information added as a caption on every photo. bobchadwick wrote a Python script that sent the captions to ChatGPT with a prompt asking for the exact coordinates of any place mentioned, and for a date when a caption named a holiday or event but no date, such as "Christmas 1987" or bobchadwick's birthday, which was included in the prompt. The results were written into the photo files' EXIF data for the majority of the photos. Now bobchadwick's Google Photos timeline stretches back to the day bobchadwick was born, and the location heatmap shows where photos were taken on the family's many road trips. bobchadwick calls it the first AI project that "really blew my mind."

Evidence: Described by posterThe person describes what happened in words, without screenshots or video.

WorkedEvidence: Described by posterPosted Last checked

Level: Advanced. You need: A tool that takes actions for you or writes code, connected accounts, or some setup on your computer.

How to use this

  1. Tap Copy prompt.
  2. Open ChatGPT.
  3. Paste it into the message box.
  4. Replace anything in [CAPITAL LETTERS IN BRACKETS] with your own details.
  5. Send it, then read the answer before acting on it.
New to this? What's a prompt?

A prompt is the message you send to the AI tool. Copy the one on this page, put your own details where it asks, and read the answer before you act on it.

Prompt

Recreated prompt

The source didn't share its exact prompt, so we wrote one from what it describes. The result shown is the source's, not ours.

What the prompt labels mean

The person didn't share their exact words, so we wrote this from what they described. We haven't tested it, and they didn't use this exact version.

Here is a caption from a family photo: "[CAPTION]". Family dates you can use: [BIRTHDAYS, ANNIVERSARIES, HOLIDAY TRADITIONS]. Reply in JSON with: place_name, latitude, longitude, date (YYYY-MM-DD) and confidence (high, medium or low). Use a date only if the caption gives one or names a holiday or event you can date from my list. If you can't tell the place or date, leave it blank rather than guessing.

Try this in:

This prompt has blanks to fill in, like [CAPTION]. We'll copy it instead of filling it in, so you can edit it before you send.

Opens in a new tab. We don't see what you send.

These links are only a shortcut. We're not affiliated with OpenAI, Google, Anthropic or xAI, and your results may not match the source.

Optional stronger version

Our rewrite with extra checks. The poster didn't test it.

Before you start, ask me 1–3 short questions about the details below and wait for my answers. Once I've answered, confirm the plan in one line and run the whole task start to finish.

Goal: Turn family photo captions into dates and map coordinates that can be written into the photo files.

Questions to ask me first:
- What do the captions look like? Paste three examples.
- Which family dates (birthdays, holidays) should be used to date events?
- Will you run this one caption at a time or in a script?

Inputs (fill in or confirm):
- Captions: [PASTE OR FILE]
- Family dates: [LIST]
- Output format: [JSON, CSV]
- Home town or usual places: [OPTIONAL]

Rules:
- Leave a field blank when the caption doesn't support it; never guess.
- Give coordinates for the place named, at the level named (city, park, address).
- Mark confidence for each answer.
- Keep the output format identical for every caption.

Checkpoint: Process the three sample captions first and wait for my OK.

If you get stuck: If a place name is ambiguous, list the options instead of picking one.

Verify before you finish: Check that every date came from the caption or my family-date list.

Output: One row per caption: file name, place, latitude, longitude, date and confidence.

Done when: I have a clean file I can use to update the photos' dates and locations.

AI tool

ChatGPT

Source

Posted
by bobchadwick (Hacker News)
Last checked
Method:
How we verify

https://news.ycombinator.com/item?id=48947217

Context: Firsthand Hacker News comment; date from the comment (July 17, 2026). The prompt is recreated and untested. ChatGPT was called from the poster's own script; back up photo files before rewriting their EXIF data.

Tell us how it went A reader message. It is not published on this page, and it is not a test of the prompt.

More in Family history

More in ResearchRandom case in Research