You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`maximum`| integer | Optional | Maximum value, if applicable (default unlimited) |
280
-
|`rate_amount`| integer | Optional |The amount of a rate applied when this rule applies, if applicable (default zero). A positive integer rate amount represents a fee, while a negative integer represents a subsidy. Rate amounts are given in the `currency` defined in the [Policy](#policy).|
280
+
|`rate_amount`| integer | Optional |Amount of the rate (see [Rate Amounts](#rate-amounts))|
281
281
|`rate_recurrence`| enum | Optional | Recurrence of the rate (see [Rate Recurrences](#rate-recurrences)) |
282
282
|`start_time`| ISO 8601 time `hh:mm:ss`| Optional | Beginning time-of-day when the rule is in effect (default 00:00:00). |
283
283
|`end_time`| ISO 8601 time `hh:mm:ss`| Optional | Ending time-of-day when the rule is in effect (default 23:59:59). |
@@ -292,7 +292,7 @@ An individual `Rule` object is defined by the following fields:
|`count`| Fleet counts based on regions. Rule `minimum`/`maximum` refers to number of devices in [Rule Units](#rule-units). |
295
-
|`time`| Individual limitations on time spent in one or more vehicle-states. Rule `minimum`/`maximum` refers to increments of time in [Rule Units](#rule-units). |
295
+
|`time`| Individual limitations or fees based upon time spent in one or more vehicle-states. Rule `minimum`/`maximum` refers to increments of time in [Rule Units](#rule-units). |
296
296
|`speed`| Global or local speed limits. Rule `minimum`/`maximum` refers to speed in [Rule Units](#rule-units). |
297
297
|`rate`|**[Beta feature](/general-information.md#beta-features):***Yes (as of 1.0.0)*. Fees or subsidies based on regions and time spent in one or more vehicle-states. Rule `rate_amount` refers to the rate charged according to the [Rate Recurrences](#rate_recurrences) and the [currency requirements](/general-information.md#costs-and-currencies) in [Rule Units](#rule-units). *Prior to implementation agencies should consult with providers to discuss how the `rate` rule will be used. Most agencies do this as a matter of course, but it is particularly important to communicate in advance how frequently and in what ways rates might change over time.*|
298
298
|`user`| Information for users, e.g. about helmet laws. Generally can't be enforced via events and telemetry. |
@@ -332,15 +332,22 @@ An individual `Rule` object is defined by the following fields:
332
332
333
333
[Top][toc]
334
334
335
-
### Rate Recurrences
335
+
### Rates
336
+
Rate-related properties can currently be specified on `rate` and `time` Rules. Note: A future MDS version will likely support rates for `count` and `speed` rules, but their behavior is currently undefined.
336
337
337
-
Rate recurrences specify when a rate is applied – either once, or periodically according to a `time_unit` specified using [Rule Units](#rule-units). A `time_unit` refers to a unit of time as measured in local time for the juristiction – a day begins at midnight local time, an hour begins at the top of the hour, etc.
338
+
#### Rate Amounts
339
+
The amount of a rate applied when this rule applies, if applicable (default zero). A positive integer rate amount represents a fee, while a negative integer represents a subsidy. Rate amounts are given in the `currency` defined in the [Policy](#policy).
338
340
339
-
| Name | Description |
340
-
| --------- | ------------------- |
341
-
|`once`| Rate is applied once to vehicles entering a matching status from a non-matching status. |
342
-
|`each_time_unit`| During each `time_unit`, rate is applied once to vehicles entering or remaining in a matching status. Requires a `time_unit` to be specified using `rule_units`. |
343
-
|`per_complete_time_unit`| Rate is applied once per complete `time_unit` that vehicles remain in a matching status. Requires a `time_unit` to be specified using `rule_units`. |
341
+
#### Rate Recurrences
342
+
343
+
Rate recurrences specify when a rate is applied – either once, or periodically according to a `time_unit` specified using [Rule Units](#rule-units). A `time_unit` refers to a unit of time as measured in local time for the jurisdiction – a day begins at midnight local time, an hour begins at the top of the hour, etc.
|`once_on_match`| Rate is applied once when a vehicle transitions **into** a matching status from a non-matching status. |
348
+
|`once_on_unmatch`| Rate is applied once a vehicle transitions **out of** a matching status to a non-matching status. |
349
+
|`each_time_unit`| During each `time_unit`, rate is applied once to vehicles entering or remaining in a matching status. Requires a `time_unit` to be specified using `rule_units`. |
350
+
|`per_complete_time_unit`| Rate is applied once per complete `time_unit` that vehicles remain in a matching status. Requires a `time_unit` to be specified using `rule_units`. |
For example, say a vehicle is parked for 6.5 hours. It will be charged `$2 (0-1hr) + $4 (1-2hr) + $10 (2-3hr) + $10 (3-4hr) + $10 (4-5hr) + $10 (5-6hr) + $10 (6-6.5hr) = $56`
0 commit comments