The following tutorial provides an example of a 7 x 7 matrix request with these origins and destinations:
Berlin at (52.54, 13.40)
Kyiv at (50.43, 30.52)
London at (51.50, -0.08)
Madrid at (40.40, -3.68)
Moscow at (55.75, 37.60)
Paris at (48.87, 2.33)
Rome at (41.90, 12.48)
To calculate a car distance matrix, you can use the request below. Since the request does not specify the destinations array, the origins are taken as destinations and the resulting matrix is a 7 x 7 matrix. The region definition is the special variant world. In the request, we use the profilecarFast which uses transport mode car and optimizes the route calculations for travel time. By default, the service calculates a travel times matrix, but since we want to get distances in the response instead of times, the request specifies the matrixAttributes property with the value distances.