getMatrix

fun getMatrix(origins: List<MPPoint>, destinations: List<MPPoint>, graphId: String, 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 MPVenue.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