byZoneCount

fun byZoneCount(name: String, fromIntersection: String, toIntersection: String, length: Double, numZones: Int, type: LinkType = LinkType.UNIDIRECTIONAL, velocityFactor: Double = 1.0, beginDirection: Double = 0.0): LinkData(source)

Builds a link from its length and how many zones divide it, deriving the zone length.

This form cannot produce a geometry mismatch, because the zone length is computed rather than supplied, so it is the safer of the two whenever the zone count is what the modeler actually knows.