I use the google maps api distance matrix using the function below:
map = gmaps.distance_matrix(source, destination, mode=\'walkin