Example with DistanceMatrixService, computing the NxN matrix of time between all waypoints