If you try one thing this weekend, try this. Attach a photograph you took to your AI assistant and paste this line:
Use Python extract the location information from the attached image and create a programmatically generated map to show me where the image was created.If the photograph still carries its location, the assistant reads where the camera stood and draws you a map. Python is a programming language the assistant runs for you. You install nothing.
Sometimes the assistant says the photograph has no location when you are sure it does. Then send the same photograph again inside a ZIP file. A ZIP file is a folder squeezed into a single file, and how to make one is under “Before you start” below. That is the only time you need the ZIP. Why it works, and four bigger prompts, are further down. First, the map that started all this.
I was in the mountains near Meadows of Dan, Virginia, for a Thanksgiving vacation with family. On Saturday, November 28, I stood on the deck of the rental, near Vesta in Patrick County, and took this picture.

I wanted the names of those mountains. So I gave the photograph to ChatGPT 6 Pro and asked it to work out where I was standing and label the peaks. It couldn’t find my location in the file, for a reason I’ll come to, so I told it where I was. Then it came back with six names.

A wrong label looks just as tidy as a right one. So I handed the labeled picture to a second assistant, Claude Fable 5.2, and asked it to confirm the math and the geography, or call it out.
About an hour later Fable had checked all six labels. Then it drew this.

Holy moly. Making maps is one of the jobs I have watched AI models try for years, and for years they failed at it. What Fable had just done, I had never seen before. It was mind-blowing.
I wrote it up on Facebook under the words “Holy moly. Maps are solved. Cooked.” “Cooked” is slang for a now-solved problem, a process that can be reliably repeated.
I told the story there as a little play. Me: “Claude Fable 5.2, check ChatGPT 6 Pro’s math and geography.” Fable: “Hold my beer.” About an hour goes by. Then Fable again: “Yep, checks out. Howya like this version:” and there was the map.
Fable never said “Hold my beer.” I wrote both of Fable’s lines for the Facebook post. A model has no beer and no swagger. Prompt 4 below is my tidied-up checking request, and prompt 5 is what I typed when I asked for the map. But the joke is true to how that hour felt. I asked one assistant to check another’s homework. It rolled up its sleeves, and it came back with the homework checked and a map better than anything I had hoped for.
Both chats are public, and you can read every word of them.
My original ChatGPT session, where ChatGPT 6 Pro named the peaks: https://chatgpt.com/share/6b0b6711-8ca0-83e9-860a-1ecb61d4bdfc
My Claude chat, where Fable checked the names and drew the map: https://claude.ai/share/63e67ba6-85b8-4576-a82c-50b85003b3f2
I had played a version of this game before. In April 2025, the day before I spoke to the Jewish Genealogical Society of New York, I gave an earlier model, OpenAI’s o3, one photograph from my hotel window and asked it where I was. It put me about three blocks away and ten floors too low. Nineteen months later, an AI checked six mountain names against government records and drew me a map of what the terrain says I can and cannot see from that deck.
What Fable did was slower and better, and it is worth a close look.
How Fable checked the six names
After its first few steps I added one rule: “Not ‘recalled’ positions! Use verified coordinates.” An AI model remembers a great deal, and some of what it remembers is wrong. Fable answered that every position it used would be a looked-up USGS record, “with nothing taken from memory.” The USGS is the U.S. Geological Survey, the federal government’s mapping agency.
Names. The USGS keeps the official list of American place names. That list supplied the positions of all six features: five summits and one ridge.
Measurements. Fable recomputed every distance and direction on the Earth’s real, slightly flattened shape. ChatGPT had used a perfect ball. The two agree to within a tenth of a mile.
Visibility. The USGS also publishes elevation data, a record of how high the ground stands at each point. Fable used the heights along each line to see whether a nearer ridge could hide the far one.
Fable’s verdict: all six labels are consistent with the map data. It also told me what it could not confirm. It could place the deck only to within about a third of a mile. One five-mile stretch of ground toward Smith Mountain would not load, though the ground on both sides of the gap is low. And one label, Grassy Hill, is a close call. More on Grassy Hill below.
How Fable built the map
I asked to see the whole thing from above. Fable built the map itself, by writing and running short programs in Python.
The ground. NASA’s elevation data gives a height for every patch of ground about 100 feet across. From those heights Fable drew the shaded hills, as if the sun were low in the sky.
The gold. For each patch of ground Fable asked one question: is there a clear straight line from the deck to here, allowing for the curve of the Earth? If yes, gold. If a nearer hill is in the way, blue.
The lines. Fable drew the map so that any straight line from the deck shows the right distance and the right direction.
A cross-check. Fable tested the NASA heights against the USGS heights from its first check. On average one stood about twenty feet higher than the other, which Fable put down to treetops.
The map holds things the photograph never told me. In the direction the camera faced, the map says the deck sees about a quarter of the ground within ten miles and less than two percent past thirty miles, just the crests. And the map says no part of Smith Mountain Lake can be seen from the deck at all.
Now look at the lower right corner of the map.

Each row slices the countryside from the deck to one feature, as if you had cut the land with a knife and looked at the cut edge. Heights are stretched five times so the hills show up.
Follow one row: Grassy Hill, 32 miles out. The white line runs from the deck to the hilltop. About two-thirds of the way along, a nearer knob rises almost to the line, and an arrow marks it. The chart’s label there reads “~200 ft to spare.” By Fable’s calculation, that is how much of Grassy Hill shows above the knob: about the top 200 feet. That is the close call from Fable’s list, drawn where you can see it.
A clear line tells you a summit could be visible. Matching that summit to a bump in my photograph takes another check. But this panel is the working behind the labels, and you can follow it with your finger.
One sentence, taken apart
The map and its corner panel came from one sentence of mine and the few words that followed it. The whole of it is prompt 5 below, and here it is in pieces. I sent it only after the checking was done, so Fable drew from positions and distances it had already looked up. Each piece shows up in what Fable did.
“As if from above.” Those words name a view and leave the method to Fable. It chose to draw the whole wedge of country the camera faced, with the six lines to scale.
“The most visually arresting layer as you can find and use.” Fable found no ready-made map that showed what mattered, so it built one from the elevation data.
“Simulated councils of experts judge the content and style.” Fable set up five reviewers. Three judged the content and two judged the style: a mapmaker and a typographer, who looks after the lettering. They went three rounds.
“Inspecting every pixel.” The reviewers found four places where words ran into each other or off a panel. And the solid dots on the summits became open rings, because a dot covered the sliver of hilltop the map was there to show.
“Meaningfully and beautifully annotated.” That is why the distances, the legend and the notes sit on the map itself.
A council like that is the model reviewing its own work, not a second pair of eyes. Still, its fact-checker struck two claims from Fable’s draft. And when the mapmaker asked for roads, rivers and county lines, the content reviewers refused, because the line data Fable could reach was too coarse to place them reliably.
To get a map like it
Check first, draw second, in the same chat. A map drawn from numbers the assistant has just looked up starts ahead of one drawn from memory.
Name the kind of source you will accept. Mine was three words: “Use verified coordinates.”
Ask for the view and the standard, and let the assistant pick the method.
Ask the assistant to judge its own picture, up close, on content and on looks. Name the kinds of experts. Then read what they struck.
Give it time. The check and the map together took about an hour, in a Claude chat that could run Python and fetch its own data.
A reader asked the right question
After the Facebook post, a reader asked whether the AI reads the location stored inside a photograph. My answer was “it depends.”
Most phone photographs carry a small block of notes called EXIF: the date, the time, the camera and, if location was switched on, a GPS tag that records where you stood. An assistant can read those notes if they are still there.
For the deck photograph they weren’t. The copy that reached ChatGPT was smaller, in a different format, and the notes were gone. Two tries on Friday morning, December 4, with another photograph gave the same result. ChatGPT could not tell where along the way the picture had been changed.
What fixed it was the ZIP file, which is passed along whole, without the picture inside being re-made. I zipped the original of that photograph and attached the ZIP. ChatGPT opened it with Python, read the GPS tag and told me the camera had been about a mile northeast of Vesta.
That is the habit: give the assistant the original photograph, and ask it to use Python to read the location. Asking for Python sends the assistant to measure the file instead of guessing from the picture.
You may never need the ZIP. If your assistant reads the location from the plain photograph, the file arrived whole and you are done. The ZIP is for the day you are sure the location is in the file and the assistant says it isn’t.
Then I asked ChatGPT to write a prompt that does the whole job in one go, and I ran it. Its map sits on the USGS’s public topographic map, with a checked scale bar and an arrow to true north, the direction of the North Pole. That prompt is number 2 below.

That was a snapshot. Here is one a family historian will care about. On Friday afternoon I gave the same prompt to Codex, OpenAI’s coding assistant, with a photograph I took in 2012 of a headstone in Ashe County, North Carolina, zipped the same way. I asked Codex one more thing: check that the marker lands in the cemetery.

Codex found the point about 32 feet inside the cemetery’s boundary on the state’s parcel map. I took that picture fourteen years ago, and the file still knew where. It was not even the camera original. It was a smaller copy saved from Photoshop, and it had kept its GPS tag.
Conley and Pearl Houck were my great-grandparents.
A map from a 1910 census page
A view from a deck is fun. But my work is family history. So I asked Claude for a map from the 1910 census.

Each census taker covered one small area, called an enumeration district, and wrote down the households as he went. This census taker worked district 30, in Oldfields township. (In North Carolina a township is a piece of a county, not a town.) He left a clue. As he went, he wrote the name of the road sideways in the left margin. A road name in the margin gives us a rough location for the households beside it.
Two Lawrence households, with one dwelling listed between them, sit on the sheet marked “Bald Mountain Road.” The order of the list does not say how far apart they stood. You can look at the sheet yourself.
Henry Lawrence was my great-grandfather, and David S. Lawrence, listed two dwellings later, was his father.
The notes on the map say how Claude made it. It read all 26 page images of the district, free online at the Internet Archive, and listed the road names in the margins. It drew the hills from USGS elevation data. Then it checked Bald Mountain Road against a USGS map from 1902, which shows a wagon road where the road runs today.
That today’s road is the one the census taker meant is still an inference. The old map supports it and does not prove it.
Now look at what the map does not do. It does not drop two pins on two farms. The census names the road, not the spot, so the map paints the whole road gold and says so in plain words. It also keeps one 1910 road name that is offensive today, because that is what the census taker wrote. It gives one mountain its present name, Simone Mountain, with the 1910 name beside it.
That is the map I want in a family history: one that shows what the record supports and marks where the record stops.
One more map, and one warning. For one particular spot near Bald Mountain Church, west of the town of West Jefferson, which census district do I search? A modern map says Old Fields township, the township the 1910 page spells Oldfields. Then Codex put the same spot on the Census Bureau’s own district map from 1940. There it falls in West Jefferson township. The spot did not move. The line did.

Gemini, Google’s assistant, drew this picture. It shows a different pair of lines: the township line of 2000 and today’s. The 2000 line is roughly drawn. For 1940, Codex worked from the Census Bureau’s map of that year, and that map is the stronger evidence.
So do not pick a census district off a modern map. Look for a map from the census year. And when you find your people, believe the page, which names the township and the district they were counted in.
Before the 1950 census opened, I used an old district map to go the other way: I started with where my family remembered living and worked out which census pages to search.
Your turn: five prompts to try
New to this? Do numbers 1 and 2 and stop there. The other three are for when you want more.
Before you start
Ask your assistant one question first: “Can you run Python and download map data in this chat?” You install nothing. The assistant runs the Python itself. ChatGPT and Claude both ran Python and fetched map data for me. If yours can read the file but cannot draw a map, ask it for the coordinates and paste them into any map app.
Use a photograph you took yourself, with location switched on. On an iPhone, open the photograph and swipe up. In Google Photos, open it and tap More. A map there is a good sign, though the app may be estimating the place. The real test is prompt 1, which reads the coordinates from the file itself. A copy saved from Facebook, a text message or a screenshot has usually lost its location, and a ZIP cannot bring it back.
Make a ZIP only if you need one. Try the photograph on its own first. You need the ZIP when you are sure the photograph has its location and the assistant says it can’t find one. Prompt 2 asks for a ZIP by name, so make one for that prompt. On Windows, right-click the file and choose Compress to ZIP file, or Send to and then Compressed (zipped) folder. On a Mac, Control-click it and choose Compress. On an iPhone, open the photograph, tap Share, then Save to Files; in the Files app, touch and hold it and tap Compress. On Android, in Files by Google, select the photograph, tap More, then Compress.
iPhone trouble? Many iPhones save photographs as HEIC files, and an assistant may not be able to open one. Send a JPEG copy instead. On a Mac, open the picture in Preview, choose File, then Export, and select JPEG. Zip that copy and check that it still has its location.
Old prints don’t count. An old print usually carries no location. Photograph it with your phone and the tag records where you made the copy. For an old homeplace, supply the location yourself.
Mind your own address. The tag that maps the cemetery also maps your house, and a ZIP is not a lock. Think before you share an original taken at home, or a map of anyone living.
1. Where was this taken?
This is the line from the top of the article, and it is the one I started with. Attach your photograph, or the ZIP if you needed one, and paste it. Once the ZIP went in, ChatGPT answered me in under two minutes. On Friday night, December 4, Claude Haiku, a small and fast Claude model, ran this prompt three times on my zipped headstone photograph. It drew the right map each time, in under a minute.
Use Python extract the location information from the attached image and create a programmatically generated map to show me where the image was created.2. Your photograph with two maps
This prompt asks for a ZIP by name, so zip the photograph first. The result is bigger: your photograph, a state map and a local map, in one picture. ChatGPT wrote this prompt, and my test on Friday morning took just under three minutes. I have since added one rule: an upright photograph gets its maps on the right instead of underneath. Codex tried the new wording on an upright photograph, and Gemini tried it on a wide one. Both layouts came out right. Read the labels when yours comes back. In Friday night’s tests Claude Haiku built the whole picture three times out of three, and twice it printed a state’s name in the wrong place.
Paste it as written. The middle paragraphs are map-making instructions for the assistant, and you don’t need to follow them.
Use Python to create one composite PNG from the photograph in the attached ZIP. Read the original image directly from the archive so its metadata is preserved. If the ZIP contains several different photos, ask me which one to use.
Arrange the graphic to suit the photograph. Apply the EXIF orientation first, then compare its width and height. If the photograph is taller than it is wide, place it on the left with the two maps stacked to its right. Otherwise, place it across the top with the two maps side by side below it. Use the same high-contrast location marker on both maps.
- **Photograph.** Apply the EXIF orientation and preserve the full frame and aspect ratio.
- **State map.** Show the entire state containing the GPS point, label the state and its neighbors, and mark the camera location. Outside the United States, use the equivalent first-level administrative region.
- **Local map.** Center the map on the camera coordinates. Show real roads, communities, and geographic features from a documented source such as OpenStreetMap or a government mapping agency. Choose an extent that makes the location recognizable. Include a distance scale with units and a true-north indicator.
Extract the latitude and longitude from the image's GPS metadata. Convert degrees, minutes, and seconds to signed decimal degrees, applying the hemisphere references. If the image has no usable coordinates, ask me for them before generating the maps.
Check the geography before rendering. Use a point-in-polygon lookup against documented boundaries to identify the state. Respect the coordinate reference system and axis order of each dataset. Render the local map in a suitable local projection, such as the appropriate UTM zone, and transform the basemap and GPS point into that same projection. Verify the scale bar against a geodesic distance at the map center and account for grid convergence when drawing the true-north indicator. If map data are unavailable, say what is missing. Never invent roads, boundaries, or landmarks.
Add a short caption with the place name, the recorded coordinates, and map-data attribution. Label the marker "Camera location" so it is clear what the point represents. Check that labels remain legible and the photograph is undistorted in the finished layout.
Display the completed composite inline and provide a download link to the full-resolution PNG.3. Name what is on the horizon
Use a photograph of a view: a ridge line, a skyline, a valley of farms. This is what I asked ChatGPT on the deck. If the assistant says the picture has no location, tell it where you stood. Tell it which way you were facing, too. A phone photograph may not record that.
This is the hardest of the five, and I would give it the strongest model you have. In Friday night’s tests Claude Haiku read the location every time and never produced a picture fit to publish. Left to guess the direction, it once labeled eight mountains to the south. I was facing northeast. Told “northeast,” it looked the right way every time and still could not finish the job.
Use all the data available in this image metadata to identify the location from which this picture was taken, but then, more especially, to identify and label the six or twelve most prominent peaks on the horizon. They're very distinctive, and you should be able to identify them once you know the location of the origin of the photograph. The resulting image should be publication-worthy and ready. Review it pixel by pixel, both for content and for style, and revise and improve until you have a publication-worthy final image.4. Get a second opinion
Give the labeled picture to a different assistant and fill in the last line. This is my tidied version of what I asked Fable. In Friday night’s tests Claude Haiku ran it three times on my labeled picture. Each time it looked up the six official positions and checked the ground along every line. Its distances matched the printed ones to rounding, and the six labels sat in the right order from left to right. All three runs called Pocket Ridge a close call. Two said the same of Grassy Hill and Smith Mountain.
Check this labeled image independently. Do not rely on positions you remember. Look up each named feature in an official source, such as the USGS Geographic Names Information System or my own country's mapping agency. Search near my viewpoint, give the coordinates you found, and tell me if a name has more than one official point or listing.
Use Python for the arithmetic. From the viewpoint below, recompute each distance and compass bearing. Then use public elevation data, such as USGS 3DEP or NASA SRTM, to check whether intervening terrain could hide each feature from my viewpoint. Allow for the curve of the Earth. Say separately whether the position of the label in the photograph fits the calculated bearing and what you could verify. Tell me if any stretch of elevation data fails to load.
Finish with a list, feature by feature: what checks out, what is marginal, and what you could not confirm.
I was standing at: [the place, or the coordinates]5. See it from above
Stay in that chat. These are the words I typed to Fable. Be patient. For me, the check and the map together took about an hour. In Friday night’s three Claude Haiku runs, the check and the map together took eight to eleven minutes. Each map got one round of review, with no council.
I want to see this area and sightlines to those peaks as if from above, with the most visually arresting layer as you can find and use; have simulated councils of experts judge the content and style, inspecting every pixel for perfection, and with high taste for visual acuity and impact. And again, meaningfully and beautifully annotated.What nobody has checked
So “cooked” needs a footnote. Making a map like this just got easy. Checking it is still our job. Treat every one of these maps as a draft, and check the names, the places and the readings against sources you trust before anything goes into your files.
Try one on a place you know well. I’d love to hear what you mapped, and what the assistant got wrong.
Have a good weekend.
— Steve, directing GPT-6.2 Astra (High), Gemini Neon (Turbo), and Claude Fable 5.2 (High)
Tools: ChatGPT 6 Pro named the peaks. Claude Fable 5.2 checked them and drew the map from above. Claude drew the Bald Mountain Road map, and Gemini 4 Neon drew the township map. ChatGPT wrote and ran the photograph prompt, and Codex ran it on the headstone. Claude Haiku ran Friday night’s tests of the five prompts. Two of the chats are public: the ChatGPT session and the Claude check. Claude Code drafted this article with me, and Codex and Gemini reviewed it. I checked every word, and I’m responsible for this article.

