@@ -4,14 +4,18 @@ This file presents a series of example [Policy documents](../README.md#schema) f
44
55## Table of Contents
66
7- - [ Prohibited Zone] ( #prohibited-zone )
8- - [ Provider Cap] ( #provider-cap )
9- - [ Idle Time] ( #idle-time )
10- - [ Speed Limits] ( #speed-limits )
11- - [ Per Trip Fees] ( #per-trip-fees )
12- - [ Vehicle Right of Way Fees] ( #vehicle-right-of-way-fees )
13- - [ Metered Parking Fees] ( #metered-parking-fees )
14- - [ Required Parking] ( #required-parking )
7+ - [ Policy Examples] ( #policy-examples )
8+ - [ Table of Contents] ( #table-of-contents )
9+ - [ Prohibited Zone] ( #prohibited-zone )
10+ - [ Provider Cap] ( #provider-cap )
11+ - [ Idle Time] ( #idle-time )
12+ - [ Speed Limits] ( #speed-limits )
13+ - [ Per Trip Fees] ( #per-trip-fees )
14+ - [ Vehicle Right of Way Fees] ( #vehicle-right-of-way-fees )
15+ - [ Metered Parking Fees] ( #metered-parking-fees )
16+ - [ Required Parking] ( #required-parking )
17+ - [ Tiered Parking Fees Per Hour] ( #tiered-parking-fees-per-hour )
18+ - [ Tiered Parking Fees Total] ( #tiered-parking-fees-total )
1519
1620## Prohibited Zone
1721
@@ -445,5 +449,124 @@ File: [`required-parking.json`](required-parking.json)
445449}
446450```
447451
452+ ## Tiered Parking Fees Per Hour
453+ This policy states parking fees as such:
454+ - Parking for the first hour costs $2
455+ - Parking for the second hour costs $4
456+ - Parking every hour onwards costs $10
457+
458+ 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 `
459+ File: [ ` tiered-parking-fees-per-hour.json ` ] ( tiered-parking-fees-per-hour.json )
460+ ```
461+ {
462+ "name": "Tiered Dwell Time Example",
463+ "description": "First hour $2, second hour $4, every hour onwards $10",
464+ "policy_id": "2800cd0a-7827-4110-9713-b9e5bf29e9a1",
465+ "start_date": 1558389669540,
466+ "publish_date": 1558389669540,
467+ "end_date": null,
468+ "prev_policies": null,
469+ "provider_ids": [],
470+ "currency": "USD",
471+ "rules": [
472+ {
473+ "name": "> 2 hours",
474+ "rule_id": "9cd1768c-ab9e-484c-93f8-72a7078aa7b9",
475+ "rule_type": "time",
476+ "rule_units": "hours",
477+ "geographies": ["0c77c813-bece-4e8a-84fd-f99af777d198"],
478+ "statuses": { "available": [], "non_operational": [] },
479+ "vehicle_types": ["bicycle", "scooter"],
480+ "maximum": 2,
481+ "rate_amount": 1000,
482+ "rate_recurrence": "each_time_unit"
483+ },
484+ {
485+ "name": "1-2 Hours",
486+ "rule_id": "edd6a195-bb30-4eb5-a2cc-44e5a18798a2",
487+ "rule_type": "time",
488+ "rule_units": "hours",
489+ "geographies": ["0c77c813-bece-4e8a-84fd-f99af777d198"],
490+ "statuses": { "available": [], "non_operational": [] },
491+ "vehicle_types": ["bicycle", "scooter"],
492+ "maximum": 1,
493+ "rate_amount": 400,
494+ "rate_recurrence": "each_time_unit"
495+ },
496+ {
497+ "name": "0-1 Hour",
498+ "rule_id": "6b6fe61b-dbe5-4367-8e35-84fb14d23c54",
499+ "rule_type": "time",
500+ "rule_units": "hours",
501+ "geographies": ["0c77c813-bece-4e8a-84fd-f99af777d198"],
502+ "statuses": { "available": [], "non_operational": [] },
503+ "vehicle_types": ["bicycle", "scooter"],
504+ "maximum": 0,
505+ "rate_amount": 200,
506+ "rate_recurrence": "each_time_unit"
507+ }
508+ ]
509+ }
510+ ```
511+
512+ ## Tiered Parking Fees Total
513+ This policy states parking fees as such:
514+ - If parked for less than an hour, $2 on exit
515+ - If parked for less than 2 hours, $4 on exit
516+ - If parked for any duration longer than 2 hours, $10 on exit
517+
518+ For example, if a vehicle is parked for 6.5 hours, it will be charged $10 on exit.
519+ File: [ ` tiered-parking-fees-total.json ` ] ( tiered-parking-fees-total.json )
520+ ```
521+ {
522+ "name": "Tiered Dwell Time Example",
523+ "description": "If parked for <1hr $2 upon exit, if parked for 1-2 hours $4 upon exit, if parked for longer than 2 hours $10 upon exit",
524+ "policy_id": "2800cd0a-7827-4110-9713-b9e5bf29e9a1",
525+ "start_date": 1558389669540,
526+ "publish_date": 1558389669540,
527+ "end_date": null,
528+ "prev_policies": null,
529+ "provider_ids": [],
530+ "currency": "USD",
531+ "rules": [
532+ {
533+ "name": "> 2 hours",
534+ "rule_id": "9cd1768c-ab9e-484c-93f8-72a7078aa7b9",
535+ "rule_type": "time",
536+ "rule_units": "hours",
537+ "geographies": ["0c77c813-bece-4e8a-84fd-f99af777d198"],
538+ "statuses": { "available": [], "non_operational": [] },
539+ "vehicle_types": ["bicycle", "scooter"],
540+ "maximum": 2,
541+ "rate_amount": 1000,
542+ "rate_recurrence": "once_on_unmatch"
543+ },
544+ {
545+ "name": "1-2 Hours",
546+ "rule_id": "edd6a195-bb30-4eb5-a2cc-44e5a18798a2",
547+ "rule_type": "time",
548+ "rule_units": "hours",
549+ "geographies": ["0c77c813-bece-4e8a-84fd-f99af777d198"],
550+ "statuses": { "available": [], "non_operational": [] },
551+ "vehicle_types": ["bicycle", "scooter"],
552+ "maximum": 1,
553+ "rate_amount": 400,
554+ "rate_recurrence": "once_on_unmatch"
555+ },
556+ {
557+ "name": "0-1 Hour",
558+ "rule_id": "6b6fe61b-dbe5-4367-8e35-84fb14d23c54",
559+ "rule_type": "time",
560+ "rule_units": "hours",
561+ "geographies": ["0c77c813-bece-4e8a-84fd-f99af777d198"],
562+ "statuses": { "available": [], "non_operational": [] },
563+ "vehicle_types": ["bicycle", "scooter"],
564+ "maximum": 0,
565+ "rate_amount": 200,
566+ "rate_recurrence": "once_on_unmatch"
567+ }
568+ ]
569+ }
570+ ```
448571[ Top] ( #table-of-contents )
449572
0 commit comments