How we could survive a sync stop between Google Photos and Google Drive

If Google really stops the sync process between Google Photos and Google Drive (Attention: Only rumors and NOT official confirmed/announced), I still have some possibilities to show your photos on a world map:

1. Using the Description as workaround 

I wrote a js script that loops over all photos and copies the location information into the description.

That script can be executed on a desktop web browser or inside a custom view I created in my beta App.

And the best part of it: It works and I already successfully displayed photos on a map using only the official Google Photos API.

Disadvantages are that the maximum page size of Google Photos API is only 100 items, compared to Google Drive’s 1000. That makes the loading process slower and more requests are needed to refresh the thumbnail URL’s.

Another disadvantage is, of course, that Google wouldn’t really be happy about my solution.

2. Using the Google Location History 

As you might know, any Google user can download its location history as json format. I could use that file to extract the location information for all needed photos.

After a few tests I realized that the kml format is much better for what I need: It lists line by line the timestamp and it’s location, so I can parse that file in memory and extract all location data.

First results: It seems to work, but parsing the kml file takes some seconds. but when all is cached, the solution would be ok.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: