invoke

open operator override fun invoke(start: Location, end: Location): Double(source)

Calculates the cost of traveling between two locations. The cost should be positive and non-negative.