Fun With Google Maps – Solar Panel Edition

I love poking around Google Maps – there are so many unexpected things you can find that are obvious from a top-down view, but are so hard to see at a ground-level view.

I was looking at a Google Maps of the Epcot theme park in Disney World, Florida. Do you see any interesting shape in the screenshot below?

Map of Epcot, located in Disney World, Florida. Includes surroundings of Epcot.

There’s a hidden Mickey in the top left hand corner! The three black circles are arranged into the shape of Mickey Mouse’s head! See the screenshot below for detail:

Google Maps picture of solar panels forming the head of Mickey Mouse.

If you zoom in enough on Google Maps, you’ll notice that this is actually an array of solar panels, generating electricity to feed the Disney theme parks. Notice that there seems to be a dirt access road to the panels and a fence around the entire array. As I said before: this solar panel array would be difficult to see in person, much less the general shape of it; but with Google Maps, the difficult becomes so obvious!

Firestore Add Document – Python

A simple example of adding a document to the Firestore:

    from google.cloud import firestore
    
    #Make a note in the firestore
    firestore_client = firestore.Client()
    doc_ref = firestore_client.collection(u'CollectionsNameHere').add({
        u'propertyone': u'thisisavalue',
        u'propertytwo': 2,
    })
    logging.warning(doc_ref[1].id)

.add returns a tuple of the date that the document was written into the firestore, and a document reference to the written document. .add lets Firestore create a document ID to the written document: to figure out what the ID is, the last line accesses the tuple and pulls out the document ID.

An item that bit me: the official documentation for Firestore states that .add and .doc().set() are equivalent. That’s true, but the returns from both of those functions are different.

Documentation from Google showing .add and .doc.set are the same operation.

.add returns a tuple of the document creation time and then a reference to the added document. However, .set returns a WriteResult, not a tuple. The WriteResult contains the time the document was updated/set in the property update_time. Make sure to use the correct function as necessary.

Set Documentation

Set Documentation - Firestore
WriteResult documentation - Firestore.

Add Documentation

Add documentation - Firestore

Google Doodle: Ruth Asawa

Today’s Google doodle celebrates the sculpture artist, Ruth Asawa.

This is how the Google front page looked like:

Google front page with Ruth Asawa.
Google front page with Ruth Asawa.

Here is the doodle by itself:

Ruth Asawa Google doodle.

The doodle linked to a search for Ruth Asawa:

Google search for Ruth Asawa, linked to by today’s doodle.