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
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
- Source checked
- Results shared. The poster described their results. This doesn't mean proof is attached.
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
- Tap Copy prompt.
- Open ChatGPT.
- Paste it into the message box.
- Replace anything in [CAPITAL LETTERS IN BRACKETS] with your own details.
- 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.
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
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
Turn parents' letters and military records into timelines and tables with NotebookLM
Lowe Intelligence put parents' letters and records into NotebookLM for timelines and tables; its infographics had spelling mistakes.
WorkedNotebookLMEvidence: Described by posterEverydayView CaseBuild a searchable family archive of 1942–43 letters with Google AI Studio and Replit
Keith Weinberger used Google AI Studio and Replit to make a relative's 1942–43 handwritten letters searchable through AI chat.
WorkedGoogle AI Studio +1Evidence: Described by posterAdvancedView CaseFind leads on an 1800s Edinburgh ancestor's parents with ChatGPT
ChatGPT gave Janice Wellard new places to search for an ancestor's parents, but it read burgess roll dates wrong and repeated itself.
PartialChatGPTEvidence: Described by posterEverydayView CaseMatch census tick marks to family names with ChatGPT
ChatGPT matched 1790 and 1800 census tick marks to the Reed family's children for a genealogy blogger in a few prompts.
WorkedChatGPTEverydayView CaseTranslate old Norwegian and German records with Gemini, Claude and ChatGPT
Gemini did the best job translating Kitty Cooper's old records, but Claude gave a partial and ChatGPT made stuff up.
PartialGemini +2Evidence: Screenshots or logsEverydayView CaseCatch a wrong birthplace in a family tree with a NotebookLM Audio Overview
A NotebookLM Audio Overview made a genealogist notice that an ancestor's recorded birthplace didn't match the records.
WorkedNotebookLMEvidence: Described by posterEverydayView Case
Similar cases
Compare four AIs transcribing a 1700s will found with FamilySearch full-text search
Dana Leeds tested Copilot, Gemini, ChatGPT and Claude on a 1700s will. Claude was most accurate, but each made spelling mistakes.
PartialClaude +3EverydayView CaseTrace a family tree from half-remembered details with ChatGPT (partial)
From vague details, ChatGPT found a grandfather's obituary and a possible Virginia line, but the other side stalled in West Virginia.
PartialChatGPTEvidence: Described by posterEverydayView CaseTranscribe and date 150 old family letters for an archive with ChatGPT
A genealogy volunteer used ChatGPT to transcribe about 150 letters from 1885 to 1925, then date them from clues in the text.
WorkedChatGPTEvidence: Described by posterEverydayView CaseBreak a six-year family history brick wall with help from ChatGPT
ChatGPT couldn't answer outright, but it spotted patterns and a wrong lead that helped two cousins end a six-year search.
WorkedChatGPTEvidence: Described by posterEverydayView Case

