alchemist-incarnation-protelis / it.unibo.alchemist.protelis / AlchemistExecutionContext / routingDistance

routingDistance

fun routingDistance(dest: Node<Any!>!): Double

Computes the distance along a map. Requires a MapEnvironment.

Parameters

dest - Node<Any!>!: the destination, in form of a destination node

Return
Double: the distance on a map

fun routingDistance(dest: Number!): Double

Computes the distance along a map. Requires a MapEnvironment.

Parameters

dest - Number!: the destination, in form of ProtelisNode ID. Non integer numbers will be cast to integers by Number#intValue().

Return
Double: the distance on a map

fun routingDistance(dest: GeoPosition!): Double

Computes the distance along a map. Requires a MapEnvironment.

Parameters

dest - GeoPosition!: the destination

Return
Double: the distance on a map

fun routingDistance(dest: Tuple!): Double

Computes the distance along a map. Requires a MapEnvironment.

Parameters

dest - Tuple!: the destination, as a Tuple of two values: [latitude, longitude]

Return
Double: the distance on a map