getMatrix

abstract fun getMatrix(@NonNull origins: List<MPPoint>, @NonNull destinations: List<MPPoint>, @NonNull avoids: List<String>, @NonNull excludes: List<String>, @NonNull travelMode: String, insideOut: Boolean, @NonNull listener: OnDistanceMatrixResultListener)

Parameters

travelMode

the travel mode for the route, one of the MPTravelMode constants (e.g. WALKING). Implementations should request the matrix using the same mode as the route so the rankings match the final directions.