Am trying to integrate distance matrix API into a Java spring boot application, I came across the java client created by Google but I can't get my way through it. I tried looking at the tests here but I still can't understand how to use
According to the test, a request is created by:
DistanceMatrixApi.newRequest(sc.context)
.origins(new LatLng(-31.9522, 115.8589), new LatLng(-37.8136, 144.9631))
.destinations(new LatLng(-25.344677, 131.036692), new LatLng(-13.092297, 132.394057))
.awaitIgnoreError();
What do I do from here, how do I get the results from the API