Skip to content

Commit 1c605c3

Browse files
Added examples
1 parent 640ac45 commit 1c605c3

1 file changed

Lines changed: 98 additions & 0 deletions

File tree

policy/examples.md

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ This file presents a series of [Policy object](./README.md#policy) examples for
88
- [Provider Cap](#provider-cap)
99
- [Idle Time](#idle-time)
1010
- [Speed Limits](#speed-limits)
11+
- [Fees and Subsidies](#fees-and-subsidies)
1112

1213
## Prohibited Zone
1314

@@ -219,5 +220,102 @@ This Policy sets a 15 MPH speed limit in greater LA, and a 10 MPH speed limit in
219220
}]
220221
}
221222
```
223+
[Top](#table-of-contents)
224+
225+
## Per Trip Fees
226+
This policy sets a 25 cent per-trip fee that is applied for trips that start in the municipal boundary.
227+
228+
229+
```json
230+
{
231+
"policy_id": "d2567b3c-3071-48a6-bbeb-3424721dbd12",
232+
"published_date": 1586736000000,
233+
"name": "Trip Fees",
234+
"start_date": 1586822400000,
235+
"end_date": 1587427200000,
236+
"prev_policies": null,
237+
"rules": [{
238+
"name": "City Wide Trip Fee",
239+
"rule_type": "rate",
240+
"rate_amount": 25,
241+
"rate_recurrence": "once",
242+
"geography": MUNICIPAL_BOUNDARY_GEOGRAPHY,
243+
"statuses": {
244+
"trip": ["trip_start"]
245+
}
246+
}]
247+
}
248+
```
249+
250+
251+
## Vehicle Right of Way Fees
252+
This policy sets a Right-of-Way fee that is charged once a day for vehicles deployed in a given area. It charges a 25 cents per day for vehicles deployed downtown, and 5 cents per day for vehicles deployed in a historically underserved neighborhood. In the case where a vehicle is deployed twice in both areas in the same day, the higher fee would apply (because it appears first in the rules).
253+
254+
```json
255+
{
256+
"policy_id": "4137a47c-836a-11ea-bc55-0242ac130003",
257+
"published_date": 1586736000000,
258+
"name": "Right of Way Fees",
259+
"start_date": 1586822400000,
260+
"end_date": 1587427200000,
261+
"prev_policies": null,
262+
"rules": [
263+
{
264+
"name": "Downtown Right of Way Fee",
265+
"rule_type": "rate",
266+
"rate_amount": 25,
267+
"rate_recurrence": "each_time_unit",
268+
"rule_units": "days",
269+
"geography": DOWNTOWN_GEOGRAPHY,
270+
"statuses": {
271+
"available": ["service_start"]
272+
}
273+
},
274+
{
275+
"name": "Decreased Right of Way Fee",
276+
"rule_type": "rate",
277+
"rate_amount": 5,
278+
"rate_recurrence": "each_time_unit",
279+
"rule_units": "days",
280+
"geography": HISTORICALLY_UNDERSERVED_NEIGHBORHOOD_GEOGRAPHY,
281+
"statuses": {
282+
"available": ["service_start"]
283+
}
284+
}
285+
]
286+
}
287+
```
288+
289+
## Metered Parking Fees
290+
This policy sets a 10 cent per hour metered parking charge that is applied while a vehicle is parked in a congested area during rush hour.
291+
292+
```json
293+
{
294+
"policy_id": "6a3dd008-836a-11ea-bc55-0242ac130003",
295+
"published_date": 1586736000000,
296+
"name": "Parking Fees",
297+
"start_date": 1586822400000,
298+
"end_date": 1587427200000,
299+
"prev_policies": null,
300+
"rules": [{
301+
"name": "Downtown Peak-Hour Parking Fee",
302+
"rule_type": "rate",
303+
"rate_amount": 10,
304+
"rate_recurrence": "per_complete_time_unit",
305+
"rule_units": "hours",
306+
"geography": INNER_CITY_GEOGRAPHY,
307+
"days": ["mon","tue","wed","thu","fri"],
308+
"start_time": "7:00:00",
309+
"end_time": "8:30:00",
310+
"statuses": {
311+
"available": [],
312+
"unavailable": [],
313+
}
314+
}]
315+
}
316+
```
317+
318+
319+
222320

223321
[Top](#table-of-contents)

0 commit comments

Comments
 (0)