getDistanceMatrix method

Future<DistanceMatrixResponse> getDistanceMatrix(
  1. DistanceMatrixRequest? request, [
  2. void callback(
    1. DistanceMatrixResponse?,
    2. DistanceMatrixStatus?
    )?
])

Implementation

Future<DistanceMatrixResponse> getDistanceMatrix(
  DistanceMatrixRequest? request, [
  void Function(DistanceMatrixResponse?, DistanceMatrixStatus?)? callback,
]) =>
    promiseToFuture(callMethod(this, 'getDistanceMatrix', [
      request,
      callback == null
          ? null
          : allowInterop(
              (p0, p1) => callback(p0, DistanceMatrixStatus$cast(p1)))
    ]));