getMatrix

open fun getMatrix(@NonNull origins: List<MPPoint>, @NonNull destinations: List<MPPoint>, @NonNull graphId: String, @NonNull onDistanceMatrixResultListener: OnDistanceMatrixResultListener)

Gets a matrix of distances and duration between points inside a a venue

Parameters

origins

a list of points as origins

destinations

a list of points as destinations

graphId

the Graph id for a specific venue. This is available through getGraphId

onDistanceMatrixResultListener

The Distance Matrix listener that returns either a distance matrix or an error, if it is not possible to create a distance matrix for the given origins and destinations