Fall 2023Project

Google Maps to Apple Maps Translator

During the pandemic, I tried to start shedding some of my presence on social media and tech platforms. I wanted to consolidate, for better or worse, around my Apple account. I dropped Facebook and Instagram, and got most of my Google accounts migrated easily (shoutout to Google Takeout!), but was having real trouble getting my Google Maps history into my Apple Maps. I've travelled so much, and captured so many memories in my Starred places, and I didn't want to start from scratch with Apple Maps.

This isn't an opinion piece about whether this is all a good idea, whether Apple Maps is better than Google Maps or vice versa (though we all know the truth) - I just wanted to back up my history on another platform. So, with no streamlined import option available in Apple Maps, I made something to get the job done. It may not be the most elegant solution, but it worked and was a really lovely way to re-experience my memories.

Step 1 - Export your data from Google

Run the Google Takeout tool on your account. I recommend only selecting the Google Maps data for this effort just to make it easier to find your files after. Be sure to select the Google Maps options like so:

TakeoutMaps

It can take some time to back up even just part of your Google account. Once it's ready (you should get an email), download the backup, unzip it, and look for two files: "Labelled places.json" and "Saved Places.json" - I cared most about the latter but both have the same formats and can be processed by these scripts.

Step 2 - Process the export

The breakthrough was realizing that both apps can open a location from a web URL. If I can translate the Google Maps URL to one that Apple Maps will recognize, I can then save the location in Apple Maps. This process works in two steps - first I use a Python script to convert the exported JSON file to a dataset written in JavaScript. I then built a simple local HTML file to loop through that dataset, in essence creating a visual interface.

Running the Python script in the same folder as your exported JSON file will create a new file, "mapurls.js". This is loaded by "mapurls.html", included above.

Step 3 - Get to work

Now, simply open the "mapurls.html" file in Safari and you can work through it, one location at a time.

MapsLinkTranslator

By clicking the Apple Maps link generated for each entry, the Maps app will open to that location. You can then manually add it to your Apple Maps Saved Places, etc. I added a textbox that lets you punch in a specific number, so you can easily pick up where you left off if the page gets reloaded.

It's still an incredibly slow process if you have a lot of saved locations, but it is neat revisiting them, one by one.