I uploaded some photos to Google photos that were taken by a very old digital camera that does not have GPS or location capability. Yet Google photos was able to determine correct city in which the photo was taken. In some cases it also determined the approximate place where it was taken. How does it do that?

  • 1
    \$\begingroup\$ Did you have an Android phone with you at the same time as you took the photos on the old camera? \$\endgroup\$
    – Philip Kendall
    May 4, 2019 at 22:42
  • \$\begingroup\$ I wasn't carrying any smart phone with me when I took those photographs. I did occasionally login to my Google account on a smart phone when I was there. The photos however were uploaded a few weeks afterwards and from a desktop. \$\endgroup\$
    – Salman A
    May 5, 2019 at 8:21
  • 2
    \$\begingroup\$ I'm voting to close this question as off-topic because this question is about the internal workings of Google's software and only incidentally related to photography. \$\endgroup\$
    – OnBreak.
    May 6, 2019 at 16:00
  • \$\begingroup\$ I might add that Google photos also seems to extract any text from photos... signposts, billboards, receipts, even hand writing. As of now you can search for text inside Google drive. \$\endgroup\$
    – Salman A
    Jun 22, 2019 at 14:17

2 Answers 2


They can use machine learning to guess location from photo

Guessing the location of a randomly chosen Street View image is hard, even for well-traveled humans. But Google’s latest artificial-intelligence machine manages it with relative ease. [...] “PlaNet is able to localize 3.6 percent of the images at street-level accuracy and 10.1 percent at city-level accuracy,” say Weyand and co. What’s more, the machine determines the country of origin in a further 28.4 percent of the photos and the continent in 48.0 percent of them.


Confirmed by uploading the sphinx picture (from wikipedia) with all EXIF information removed. After a while, the location was automatically changed to "Giza Necropolis". Obviously this information can't come from GPS, phone spying or timestamp matching and could only be derived from the photograph itself.

So, the good news is, google knowing the location of your photos does not necessarily mean you are being tracked without your permission. Your location can be seen because you are showing the location in your photos!

sphinx of giza automatically recognized by google photos

  • \$\begingroup\$ This is consistent with my observations... photos with some kind of visible landmark were tagged, photos from the same area but no visible landmark were not tagged. \$\endgroup\$
    – Salman A
    May 6, 2019 at 19:32

I wasn't carrying any smartphone with me when I took those photographs. I did occasionally login to my Google account on a smartphone when I was there. The photos however were uploaded a few weeks afterwards and from a desktop.

It doesn't matter when you upload them or from where you uploaded them. Unless the images have had their EXIF info stripped before you uploaded them, Google is smart enough to read that information from the photos and determine when they were taken.

Next it compares the time stamp in the images to your known locations based on your google logins. It finds your logins that were closest, timewise, to when the photos were taken. Now it knows approximately where you were when the photos were taken. At the very least it can narrow down where you might have been within a certain range of travel. From there it is able to begin searching its vast database to find similar scenes in the same areas.

  • \$\begingroup\$ I am currently investigating this. Google photos did not tag some photos in-between (some having same datetime as the tagged photos before and after) and one common thing among most untagged photos was that they were taken indoors. \$\endgroup\$
    – Salman A
    May 5, 2019 at 16:31
  • 1
    \$\begingroup\$ this should be easy to to verify - just upload a bunch of photos taken by someone living in a different place \$\endgroup\$
    – szulat
    May 6, 2019 at 20:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.