getDistanceMatrix

open fun getDistanceMatrix(    @NonNull origins: List<Point>,     @NonNull destinations: List<Point>,     @NonNull graphId: String,     @NonNull distanceMatrixReceiver: MPDistanceMatrixReceiver)

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

distanceMatrixReceiver

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