A limit defining a maximum distance which can be traveled. It can be either hard or soft.
If a soft limit is defined, both softMaxMeters
and costPerKilometerAboveSoftMax
must be defined and be nonnegative.
JSON representation |
---|
{ "maxMeters": string, "softMaxMeters": string, "costPerKilometerBelowSoftMax": number, "costPerKilometerAboveSoftMax": number } |
Fields | |
---|---|
maxMeters |
A hard limit constraining the distance to be at most maxMeters. The limit must be nonnegative. |
softMaxMeters |
A soft limit not enforcing a maximum distance limit, but when violated results in a cost which adds up to other costs defined in the model, with the same unit. If defined softMaxMeters must be less than maxMeters and must be nonnegative. |
costPerKilometerBelowSoftMax |
Cost per kilometer incurred, increasing up to
This cost is not supported in |
costPerKilometerAboveSoftMax |
Cost per kilometer incurred if distance is above
The cost must be nonnegative. |