zonesToEnter

fun zonesToEnter(vehicle: FleetVehicle, location: String): Int?(source)

How many zones a vehicle still has to enter to reach a location. Of two vehicles at the same distance, the one with fewer is in front: it can move first.

Return

null on a substrate with no zones, such as a free path, or when the location can't be reached