Creating a Mileage Matrix

Creating a mileage matrix grid is easy enough if you only have a few addresses. But what if you have dozens of addresses? Enter Python, the GoogleMaps API, and the popular data-science library, Pandas.

What we need to begin with is a dictionary of addresses. For each address, we want …