The Distance Matrix API takes several locations as the origins and the destinations, and returns the distances between each other. You can set various options, such as traveling modes, for a more accurate distance result.
You can use the SDK's built-in methods to request the result. Also, it's your freedom to manually process and visualize the data when needed.
There are detailed instructions in the references of Distance Matrix.