get Distance
@JvmStatic()
Content copied to clipboard
Gets the device's current location, then calculates the travel distance and duration to a destination.
See also
Parameters
destination
The destination.
modes
The travel modes.
units
The distance units.
callback
A callback.
fun getDistance(destination: Location, modes: EnumSet<Radar.RadarRouteMode>, units: Radar.RadarRouteUnits, block: (status: Radar.RadarStatus, routes: RadarRoutes?) -> Unit)
Content copied to clipboard
Gets the device's current location, then calculates the travel distance and duration to a destination.
See also
Parameters
destination
The destination.
modes
The travel modes.
units
The distance units.
block
A block callback.
@JvmStatic()
Content copied to clipboard
Calculates the travel distance and duration from an origin to a destination.
See also
Parameters
origin
The origin.
destination
The destination.
modes
The travel modes.
units
The distance units.
callback
A callback.
fun getDistance(origin: Location, destination: Location, modes: EnumSet<Radar.RadarRouteMode>, units: Radar.RadarRouteUnits, block: (status: Radar.RadarStatus, routes: RadarRoutes?) -> Unit)
Content copied to clipboard
Calculates the travel distance and duration from an origin to a destination.
See also
Parameters
origin
The origin.
destination
The destination.
modes
The travel modes.
units
The distance units.
block
A block callback.