google-maps-at-88-mph

The folks maintaining Google Maps regularly update the satellite imagery it serves its users, but outdated versions of the imagery are kept around in for a year or two. This Python-based tool automatically crawls its way through these versions, figuring out which provide unique imagery and downloading it for a user-defined (that's you! you get to define things!) area, eventually assembling it in the form of a GIF.

This weekend project is based on ærialbot, a previous weekend project of mine.

Scroll down to learn how to set it up on your machine, or stay up here for some examples.

There's usually two or three different views of any given area available in the "version history", which can yield neat 3D effects (the attributes contain the invocations used to generate them):

googlemapsat88mph-2021-07-24T21.03.20-v868-869-870-891-904-x18742..18745y25068..25071-z16-38.900068--77.036555-1000.0x1000.0m

googlemapsat88mph-2021-07-24T22.13.07-v877-903-904-x68787..68791y45301..45305-z17-48.474655-8.934258-500.0x500.0m

googlemapsat88mph-2021-07-24T22.32.40-v865-893-904-x107054..107058y57064..57069-z17-22.648492-114.037832-1000.0x1000.0m

For areas of the world that have changed significantly recently, flipping through the imagery versions is almost like a timelapse – consider the port of Beirut before and after the 2020 explosion on the left, or the perpetually-over-budget-and-behind-schedule construction of the new Stuttgart central station on the right.

googlemapsat88mph-2021-07-24T22.19.39-v873-875-904-x39231..39237y26199..26203-z16-33.900646-35.518118-2297.0x1500.0m

googlemapsat88mph-2021-07-24T22.24.29-v877-888-904-x137756..137762y90264..90268-z18-48.783753-9.183353-459.5x300.0m

It's also fun to look at airports and center pivot irrigation fields through the lens this tool provides:

googlemapsat88mph-2021-07-24T22.39.30-v864-867-868-872-873-877-882-888-891-897-903-904-x38482..38486y27014..27018-z16-30.106566-31.398192-1200.0x1200.0m

googlemapsat88mph-2021-07-24T22.44.43-v897-904-x33634..33638y21554..21557-z16-52.309827-4.766492-1000.0x1000.0m

googlemapsat88mph-2021-07-25T14.51.11-v867-872-873-875-877-878-882-888-904-x20009..20013y12776..12780-z15-36.79054-39.848536-3000.0x3000.0m

Because Google regularly removes the oldest available versions, all of this is rather ephemeral – a year from now (which, at the time of writing, was July 2021), the invocations of this tool that have created the GIFs above may yield totally different results. Longer-term timelapses of the surface of our planet can be found on Google Earth Timelapse (or through @earthacrosstime, another weekend project of mine, namely a Twitter bot that posts randomly selected timelapses off it), but what's available there doesn't reach the high resolution of Google Maps.

Setup

Being a good Python 3 citizen, this tool integrates with venv to avoid dependency hell. (Although it only requires the Pillow and requests packages.) Run the following commands to get it installed on your system:

$ git clone https://github.com/doersino/google-maps-at-88-mph
$ python3 -m venv google-maps-at-88-mph
$ cd google-maps-at-88-mph
$ source bin/activate
$ pip3 install -r requirements.txt

(To deactivate the virtual environment, run deactivate.)

Usage

Once you've set everything up, run the following command:

$ python3 googlemapsat88mph.py --help

That'll wax poetic about the available command-line flags and arguments. Importantly, there are three positional arguments, i.e., you've got to set these:

  1. The latitude-longitude pair you're interested in, along with
  2. how wide (east-west extent) and...
  3. ...how tall (north-south extent, both in meters) the downloaded area should be.

Along with those three, you need to supply a value for at least one of the -m, -w, and -h flags – the --help output explains them in detail.

For example, the following invocation will create the first of the GIFs embedded above, showing the White House:

$ python3 googlemapsat88mph.py 38.900068,-77.036555 1000 1000 -w 500

That's basically it! For your viewing pleasure, here's a video of the CLI in action, first scrolling through the --help output, then executing the command from above:

FAQ

Why the name?

Because when this baby hits 88 miles per hour, you're gonna see some serious shit.

Why did you make this tool?

I became aware of how Google Maps versions its imagery as a side-effect of building and maintaining ærialbot. Figuring out a way to explore past imagery seemed super interesting – note that initially, I wasn't sure how far back the available imagery would go. Finding out that it's only about a year was a bit of a letdown, but there's still some gems to be found either way. The ephemerality aspect also appeals to me.

Does this violate Google's terms of use?

Probably. I haven't checked. But they haven't banned my IP for downloading tens of thousands of map tiles during development and testing (of ærialbot and this), so you're probably good as long as you don't use this tool for downloading a centimeter-scale map of your country. What's more, I can't think of a way in which this tool competes with or keeps revenue from any of Google's products. (And it's always worth keeping in mind that Google is an incredibly profitable company that earns the bulk of its income via folks like you just going about their days surfing the ad-filled web.)

Something is broken – can you fix it?

Possibly. Please feel free to file an issue – I'll be sure to take a look!

googlemapsat88mph-2021-07-25T14.06.43-v888-891-900-904-x32678..32689y21801..21805-z16-51.471279--0.464004-4000.0x1280.0m

GitHub

https://github.com/doersino/google-maps-at-88-mph