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
Copy file name to clipboardExpand all lines: policy/README.md
+26-26Lines changed: 26 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -336,22 +336,22 @@ An individual `Rule` object is defined by the following fields:
336
336
|`rule_type`| enum | Required | Type of policy (see [Rule Types](#rule-types)) |
337
337
|`geographies`| UUID[]| Required | List of [Geography](/geography#general-information) UUIDs (non-overlapping) specifying the covered geography |
338
338
|`states`|`{ state: event[] }`| Required |[Vehicle state][vehicle-states] to which this rule applies. Optionally provide a list of specific [vehicle events][vehicle-events] as a subset of a given status for the rule to apply to. An empty list or `null`/absent defaults to "all". |
339
-
|`rule_units`| enum | Conditionally Required | Measured units of policy (see [Rule Units](#rule-units)) |
339
+
|`rule_units`| enum |[Conditionally Required](./general-information.md#conditionally-required-fields]| Measured units of policy (see [Rule Units](#rule-units)) |
340
340
|`accessibility_options`|[AccessibilityOption][accessibility-options][]| Applicable vehicle [accessibility options][accessibility-options], default any (or none) |
|`maximum`| integer | Optional | Maximum value, if applicable (default unlimited) |
345
-
|`inclusive_minimum`| boolean | Optional | Whether the rule `minimum` is considered in-bounds (default `true`) |
346
-
|`inclusive_maximum`| boolean | Optional | Whether the rule `maximum` is considered in-bounds (default `true`) |
347
-
|`rate_amount`| integer | Optional | Amount of the rate (see [Rate Amounts](#rate-amounts)) |
348
-
|`rate_recurrence`| enum | Optional | Recurrence of the rate (see [Rate Recurrences](#rate-recurrences)) |
349
-
|`rate_applies_when`| enum | Optional | Specifies when a rate is applied to a rule (see [Rate Applies When](#rate-applies-when)) (defaults to `out_of_bounds`) |
350
-
|`start_time`| ISO 8601 time `hh:mm:ss`| Optional | Beginning time-of-day when the rule is in effect (default 00:00:00). |
351
-
|`end_time`| ISO 8601 time `hh:mm:ss`| Optional | Ending time-of-day when the rule is in effect (default 23:59:59). |
352
-
|`days`| day[]| Optional | Days `["sun", "mon", "tue", "wed", "thu", "fri", "sat"]` when the rule is in effect (default all) |
353
-
|`messages`|`{ String:String }`| Optional | Message to rider user, if desired, in various languages, keyed by language tag (see [Messages](#messages)) |
354
-
|`value_url`| URL | Optional | URL to an API endpoint that can provide dynamic information for the measured value (see [Value URL](#value-url)) |
|`minimum`| integer |[Optional](./general-information.md#optional-fields]| Minimum value, if applicable (default 0) |
344
+
|`maximum`| integer |[Optional](./general-information.md#optional-fields]| Maximum value, if applicable (default unlimited) |
345
+
|`inclusive_minimum`| boolean |[Optional](./general-information.md#optional-fields]| Whether the rule `minimum` is considered in-bounds (default `true`) |
346
+
|`inclusive_maximum`| boolean |[Optional](./general-information.md#optional-fields]| Whether the rule `maximum` is considered in-bounds (default `true`) |
347
+
|`rate_amount`| integer |[Optional](./general-information.md#optional-fields]| Amount of the rate (see [Rate Amounts](#rate-amounts)) |
348
+
|`rate_recurrence`| enum |[Optional](./general-information.md#optional-fields]| Recurrence of the rate (see [Rate Recurrences](#rate-recurrences)) |
349
+
|`rate_applies_when`| enum |[Optional](./general-information.md#optional-fields]| Specifies when a rate is applied to a rule (see [Rate Applies When](#rate-applies-when)) (defaults to `out_of_bounds`) |
350
+
|`start_time`| ISO 8601 time `hh:mm:ss`|[Optional](./general-information.md#optional-fields]| Beginning time-of-day when the rule is in effect (default 00:00:00). |
351
+
|`end_time`| ISO 8601 time `hh:mm:ss`|[Optional](./general-information.md#optional-fields]| Ending time-of-day when the rule is in effect (default 23:59:59). |
352
+
|`days`| day[]|[Optional](./general-information.md#optional-fields]| Days `["sun", "mon", "tue", "wed", "thu", "fri", "sat"]` when the rule is in effect (default all) |
353
+
|`messages`|`{ String:String }`|[Optional](./general-information.md#optional-fields]| Message to rider user, if desired, in various languages, keyed by language tag (see [Messages](#messages)) |
354
+
|`value_url`| URL |[Optional](./general-information.md#optional-fields]| URL to an API endpoint that can provide dynamic information for the measured value (see [Value URL](#value-url)) |
355
355
356
356
[Top][toc]
357
357
@@ -682,9 +682,9 @@ Unique combinations for data specs, specific providers, vehicle types, policies,
|`description`| text | Required | Simple agency program description of this combination of MDS, providers, vehicles, and time frame. |
684
684
|`program_website_url`| URL | Required | URL of the agency's transportation policy page. E.g. "https://www.cityname.gov/transportation/shared-devices.htm"|
685
-
|`program_document_url`| URL |Optional | URL of the agency's operating permit rules that mention data requirements. E.g. "https://www.cityname.gov/mds_data_policy.pdf"|
685
+
|`program_document_url`| URL |[Optional](./general-information.md#optional-fields]| URL of the agency's operating permit rules that mention data requirements. E.g. "https://www.cityname.gov/mds_data_policy.pdf"|
686
686
|`provider_ids`| UUID[]| Required | Array of provider UUIDs that apply to this group the requirements |
687
-
|`vehicle_type`| Enum | Optional | Array of [Vehicle Types](/general-information.md#vehicle-types) that apply to this requirement. If absent it applies to all vehicle types. |
687
+
|`vehicle_type`| Enum |[Optional](./general-information.md#optional-fields]| Array of [Vehicle Types](/general-information.md#vehicle-types) that apply to this requirement. If absent it applies to all vehicle types. |
688
688
|`start_date`|[timestamp][ts]| Required | Beginning date/time of requirements |
689
689
|`end_date`|[timestamp][ts]| Required | End date/time of requirements. Can be null. Keep data at least one year past `end_date` before removing. |
690
690
|`required_data_specs`| Array | Required | Array of required [Data Specs](#requirement-data-specs)|
@@ -722,9 +722,9 @@ For each combination of items in a program, you can specify the data specs, APIs
|`data_spec_name`| Enum | Required | Name of the data spec required. Supported values are: '[MDS](https://github.com/openmobilityfoundation/mobility-data-specification/tree/ms-requirements)', '[CDS](https://github.com/openmobilityfoundation/curb-data-specification)' '[GBFS](https://github.com/NABSA/gbfs/tree/v2.2)'. Others like GOFS, GTFS, TOMP-API, etc may also be referenced now by agencies and officially standardized here in the future -- leave your feedback on [this issue](https://github.com/openmobilityfoundation/mobility-data-specification/issues/682). |
724
724
|`version`| Text | Required | Version number of the data spec required. E.g. '1.2.0' |
725
-
|`mode_id`| Text | Optional | The [mode list][modes] shortname for MDS. E.g. 'passenger-services' |
726
-
|`required_apis`| Array | Conditionally Required | Name of the [Requirement APIs](#requirement-apis) that need to be served by providers. At least one API is required. APIs not listed will not be available to the agency. |
727
-
|`available_apis`| Array | Conditionally Required | Name of the [Requirement APIs](#requirement-apis) that are being served by agencies. Not applicable to GBFS. APIs not listed will not be available to the provider. |
725
+
|`mode_id`| Text |[Optional](./general-information.md#optional-fields]| The [mode list][modes] shortname for MDS. E.g. 'passenger-services' |
726
+
|`required_apis`| Array |[Conditionally Required](./general-information.md#conditionally-required-fields]| Name of the [Requirement APIs](#requirement-apis) that need to be served by providers. At least one API is required. APIs not listed will not be available to the agency. |
727
+
|`available_apis`| Array |[Conditionally Required](./general-information.md#conditionally-required-fields]| Name of the [Requirement APIs](#requirement-apis) that are being served by agencies. Not applicable to GBFS. APIs not listed will not be available to the provider. |
728
728
729
729
[Top][toc]
730
730
@@ -790,7 +790,7 @@ You may also show which APIs, endpoints, and fields your agency is serving to pr
|`api_name`| Text | Required | Name of the applicable API required. At least one API is required. APIs not listed will not be available to the agency. E.g. for MDS: 'provider', or 'agency'. For GBFS, this field is omitted since GBFS starts at the `endpoint` level. |
792
792
|`endpoint_name`| Text | Required | Name of the required endpoint under the API. At least one endpoint is required. E.g. for MDS 'provider': 'trips' |
793
-
|`use_cases`| Object with Array | Optional | The list of policy uses cases that this data standard's information covers for your program. Includes an `external_url` to a HTTP reference list or database (e.g. to the [OMF Use Case Database](https://airtable.com/shrPf4QvORkjZmHIs/tblzFfU6fxQm5Sdhm)), **and** an array of `ids` of each applicable use case (e.g. "OMF-MDS-31"). You may enumerate multiple external use case sources and ids. |
793
+
|`use_cases`| Object with Array |[Optional](./general-information.md#optional-fields]| The list of policy uses cases that this data standard's information covers for your program. Includes an `external_url` to a HTTP reference list or database (e.g. to the [OMF Use Case Database](https://airtable.com/shrPf4QvORkjZmHIs/tblzFfU6fxQm5Sdhm)), **and** an array of `ids` of each applicable use case (e.g. "OMF-MDS-31"). You may enumerate multiple external use case sources and ids. |
794
794
795
795
[Top][toc]
796
796
@@ -799,17 +799,17 @@ You may also show which APIs, endpoints, and fields your agency is serving to pr
|`required_endpoints`| Array | Required | Array of optional endpoints required by the agency. At least one is required. Endpoints not listed will not be available to the agency. |
802
-
|`required_fields`| Array | Optional | Array of optional field names required by the agency. Can be omitted if no optional fields are required. Use dot notation for nested fields. See **special notes** below. |
803
-
|`disallowed_fields`| Array | Optional | Array of optional field names which must not be returned by in the endpoint, even if required in MDS. Use dot notation for nested fields. See **special notes** below. |
804
-
|`report_geographies`| Array | Optional | Array of geography UUIDs (sourced from the Agency's Geographies API) that are the only geographies to be returned in Provider [Reports](../provider#reports). |
802
+
|`required_fields`| Array |[Optional](./general-information.md#optional-fields]| Array of optional field names required by the agency. Can be omitted if no optional fields are required. Use dot notation for nested fields. See **special notes** below. |
803
+
|`disallowed_fields`| Array |[Optional](./general-information.md#optional-fields]| Array of optional field names which must not be returned by in the endpoint, even if required in MDS. Use dot notation for nested fields. See **special notes** below. |
804
+
|`report_geographies`| Array |[Optional](./general-information.md#optional-fields]| Array of geography UUIDs (sourced from the Agency's Geographies API) that are the only geographies to be returned in Provider [Reports](../provider#reports). |
805
805
806
806
**Agency Endpoints** - Specific to the `available_apis` array
|`available_endpoints`| Array | Required | Array of endpoints provided by the agency. At least one is required. Endpoints not listed will not be available to the provider. |
811
-
|`url`| URL | Optional | Location of API endpoint url. Required if the API is unauthenticated and public, optional if endpoint is authenticated and private. E.g. "https://mds.cityname.gov/geographies/geography/1.1.0"|
812
-
|`available_fields`| Array | Optional | Array of optional field names provided by the agency. Can be omitted if none are required. Use dot notation for nested fields. See **special notes** below. |
811
+
|`url`| URL |[Optional](./general-information.md#optional-fields]| Location of API endpoint url. Required if the API is unauthenticated and public, optional if endpoint is authenticated and private. E.g. "https://mds.cityname.gov/geographies/geography/1.1.0"|
812
+
|`available_fields`| Array |[Optional](./general-information.md#optional-fields]| Array of optional field names provided by the agency. Can be omitted if none are required. Use dot notation for nested fields. See **special notes** below. |
813
813
814
814
**Special notes about `required_fields` and `disallowed_fields`.**
0 commit comments