From 1712924f7c2c2ee407a5c673a8c7bac3f398351d Mon Sep 17 00:00:00 2001 From: Michael Schnuerle <1285077+schnuerle@users.noreply.github.com> Date: Thu, 19 Nov 2020 09:51:01 -0500 Subject: [PATCH 1/5] Add required parking file --- policy/examples/required-parking.json | 58 +++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 policy/examples/required-parking.json diff --git a/policy/examples/required-parking.json b/policy/examples/required-parking.json new file mode 100644 index 00000000..79a14e5e --- /dev/null +++ b/policy/examples/required-parking.json @@ -0,0 +1,58 @@ +{ + "updated": 0, + "version": "1.0.0", + "data": { + "policy": [ + { + "policy_id": "99f7a469-6e3a-4981-9313-c2f6c0bbd5ce", + "name": "Test City Mobility Hubs", + "description": "Enforced parking in specific mobility hubs for downtown area", + "start_date": 1558389669540, + "end_date": null, + "published_date": 1558389669540, + "prev_policies": null, + "rules": [ + { + "name": "Allow parking in specific locations", + "rule_id": "8a61de66-d9fa-4cba-a38d-5d948e2373fe", + "minimum": 0, + "rule_type": "count", + "rule_units": "devices", + "geographies": [ + "e3ed0a0e-61d3-4887-8b6a-4af4f3769c14", + "1512a3f4-313c-45fc-9fae-0dca6d7ab355" + ], + "states": { + "available": [ + "trip_end" + ] + }, + "vehicle_types": [ + "bicycle", + "scooter" + ] + }, + { + "name": "Disallow parking elsewhere in downtown area", + "rule_id": "0240899e-a8ad-4263-953a-6e278ff859ab", + "rule_type": "count", + "maximum": 0, + "rule_units": "devices", + "geographies": [ + "075a5303-2571-4ca5-b429-841bcc4025d1" + ], + "states": { + "available": [ + "trip_end" + ] + }, + "vehicle_types": [ + "bicycle", + "scooter" + ] + } + ] + } + ] + } +} \ No newline at end of file From b970b798880df086503041e07ec54eaddd920bbf Mon Sep 17 00:00:00 2001 From: Michael Schnuerle <1285077+schnuerle@users.noreply.github.com> Date: Thu, 19 Nov 2020 09:53:10 -0500 Subject: [PATCH 2/5] Add required parking example --- policy/examples/README.md | 63 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/policy/examples/README.md b/policy/examples/README.md index c1ee2afc..9fb59f93 100644 --- a/policy/examples/README.md +++ b/policy/examples/README.md @@ -11,6 +11,7 @@ This file presents a series of example [Policy documents](../README.md#schema) f - [Per Trip Fees](#per-trip-fees) - [Vehicle Right of Way Fees](#vehicle-right-of-way-fees) - [Metered Parking Fees](#metered-parking-fees) +- [Required Parking](#required-parking) ## Prohibited Zone @@ -384,3 +385,65 @@ File: [`metered-parking-fees.json`](metered-parking-fees.json) ``` [Top](#table-of-contents) + +## Required Parking + +This policy states that within the downtown region, parking of scooters and bicycles must take place within specific geographies. + +File: [`required-parking.json`](required-parking.json) + +```json +{ + "policy_id": "99f7a469-6e3a-4981-9313-c2f6c0bbd5ce", + "name": "Test City Mobility Hubs", + "description": "Enforced parking in specific mobility hubs for downtown area", + "start_date": 1558389669540, + "end_date": null, + "published_date": 1558389669540, + "prev_policies": null, + "rules": [ + { + "name": "Allow parking in specific locations", + "rule_id": "8a61de66-d9fa-4cba-a38d-5d948e2373fe", + "minimum": 0, + "rule_type": "count", + "rule_units": "devices", + "geographies": [ + "e3ed0a0e-61d3-4887-8b6a-4af4f3769c14", + "1512a3f4-313c-45fc-9fae-0dca6d7ab355" + ], + "states": { + "available": [ + "trip_end" + ] + }, + "vehicle_types": [ + "bicycle", + "scooter" + ] + }, + { + "name": "Disallow parking elsewhere in downtown area", + "rule_id": "0240899e-a8ad-4263-953a-6e278ff859ab", + "rule_type": "count", + "maximum": 0, + "rule_units": "devices", + "geographies": [ + "075a5303-2571-4ca5-b429-841bcc4025d1" + ], + "states": { + "available": [ + "trip_end" + ] + }, + "vehicle_types": [ + "bicycle", + "scooter" + ] + } + ] +} +``` + +[Top](#table-of-contents) + From 3b35ea6d30a01b638022e72f4d06231e7cf8edeb Mon Sep 17 00:00:00 2001 From: Michael Schnuerle <1285077+schnuerle@users.noreply.github.com> Date: Thu, 19 Nov 2020 10:00:04 -0500 Subject: [PATCH 3/5] Added optional Stop image --- general-information.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/general-information.md b/general-information.md index ccea07d8..a5f8e925 100644 --- a/general-information.md +++ b/general-information.md @@ -195,6 +195,8 @@ Stops describe vehicle trip start and end locations in a pre-designated physical | num_places_disabled | {vehicle_type: number} | Optional | How many places are disabled and unable to accept vehicles at this stop? | | parent_stop | UUID | Optional | Describe a basic hierarchy of stops (e.g.a stop inside of a greater stop) | | devices | UUID[] | Optional | List of device_ids for vehicles which are currently at this stop | +| image_url | URL | Optional | Link to an image, photo, or diagram of the stop. Could be used by providers to help riders find or use the stop. | + ### Stop Status From 71e74fc0dc55e5b1955156d2f46f5339ad820896 Mon Sep 17 00:00:00 2001 From: Michael Schnuerle <1285077+schnuerle@users.noreply.github.com> Date: Thu, 19 Nov 2020 10:05:16 -0500 Subject: [PATCH 4/5] Add Stop field to Policy Rule --- policy/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/policy/README.md b/policy/README.md index 62ca2411..d0b529c5 100644 --- a/policy/README.md +++ b/policy/README.md @@ -248,6 +248,7 @@ An individual `Rule` object is defined by the following fields: | `days` | day[] | Optional | Days `["sun", "mon", "tue", "wed", "thu", "fri", "sat"]` when the rule is in effect (default all) | | `messages` | `{ String:String }` | Optional | Message to rider user, if desired, in various languages, keyed by language tag (see [Messages](#messages)) | | `value_url` | URL | Optional | URL to an API endpoint that can provide dynamic information for the measured value (see [Value URL](#value-url)) | +| `stops` | UUID[] | Optional | List of [Stop](/general-information.md#stops) UUIDs that this Rule applies to. If this field is used then the `geographies` field must be used to identify the locations. | [Top][toc] From 030f542d5f9603ffca72aa4526d4a773b1731d4e Mon Sep 17 00:00:00 2001 From: Michael Schnuerle <1285077+schnuerle@users.noreply.github.com> Date: Tue, 24 Nov 2020 16:56:18 -0600 Subject: [PATCH 5/5] Pulling stops in rules until next release Looking to make a bigger, better solution, per the WG conversations. --- policy/README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/policy/README.md b/policy/README.md index d0b529c5..62ca2411 100644 --- a/policy/README.md +++ b/policy/README.md @@ -248,7 +248,6 @@ An individual `Rule` object is defined by the following fields: | `days` | day[] | Optional | Days `["sun", "mon", "tue", "wed", "thu", "fri", "sat"]` when the rule is in effect (default all) | | `messages` | `{ String:String }` | Optional | Message to rider user, if desired, in various languages, keyed by language tag (see [Messages](#messages)) | | `value_url` | URL | Optional | URL to an API endpoint that can provide dynamic information for the measured value (see [Value URL](#value-url)) | -| `stops` | UUID[] | Optional | List of [Stop](/general-information.md#stops) UUIDs that this Rule applies to. If this field is used then the `geographies` field must be used to identify the locations. | [Top][toc]