Code to calculate distances between a list of venues using the google directions API