NDD Transit SetTransit Set
Overview
A transit set provides a custom matrix of values between locations. Transit sets can be used to supply pre-computed distance or time matrices, or to define custom dimensional quantities for movements between locations. Transit sets are referenced by transit generators.
Applicable models
- NDD
ndd-cmibu6krtqja
TransitSet
Schema definition
message TransitSet {
repeated TransitValue transits = 1;
}Fields
- transits
- A list of transit values defining the pairwise quantities between locations.
Transit Value
A transit value defines a single origin-destination pair and the associated quantity.
Schema definition
message TransitValue {
required string fromId = 1;
required string toId = 2;
required float value = 3;
}Fields
- fromId
- The identifier of the origin location.
- toId
- The identifier of the destination location.
- value
- The quantity for this origin-destination pair on the associated dimension.
Examples
transits { fromId: "loc-A" toId: "loc-B" value: 15.5 }
transits { fromId: "loc-B" toId: "loc-A" value: 16.2 }
transits { fromId: "loc-A" toId: "loc-C" value: 22.0 }
transits { fromId: "loc-C" toId: "loc-A" value: 21.8 }Notes
- Transit values are directional. The value from A to B may differ from B to A.
- A transit set should contain values for all origin-destination pairs referenced in the model. Missing pairs will result in an error.