kotcity4 / kotcity.data / CityMap / hasTrafficNearby

hasTrafficNearby

fun hasTrafficNearby(coordinate: BlockCoordinate, radius: Int, quantity: Int): Boolean

Used to check traffic at a given coordinate with a certain radius

Parameters

coordinate - coordinate to check at

radius - radius in blocks

quantity - quantity of traffic. Each one represents the traffic from one contract.