getMatrix

fun getMatrix(origins: Array<Location>, destinations: Array<Location>, mode: Radar.RadarRouteMode, units: Radar.RadarRouteUnits, callback: Radar.RadarMatrixCallback)

Calculates the travel distances and durations between multiple origins and destinations for up to 25 routes.

See also

Parameters

origins

The origins.

destinations

The destinations.

mode

The travel mode.

units

The distance units.

callback

A callback.

fun getMatrix(origins: Array<Location>, destinations: Array<Location>, mode: Radar.RadarRouteMode, units: Radar.RadarRouteUnits, block: (status: Radar.RadarStatus, matrix: RadarRouteMatrix?) -> Unit)

Calculates the travel distances and durations between multiple origins and destinations for up to 25 routes.

See also

Parameters

origins

The origins.

destinations

The destinations.

mode

The travel mode.

units

The distance units.

block

A block callback.