Skip to content

Commit

Permalink
Merge pull request #603 from openmobilityfoundation/ms-stops
Browse files Browse the repository at this point in the history
Stops Updates for Release
  • Loading branch information
schnuerle authored Dec 9, 2020
2 parents fdab545 + 030f542 commit 5625dc4
Show file tree
Hide file tree
Showing 3 changed files with 123 additions and 0 deletions.
2 changes: 2 additions & 0 deletions general-information.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,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

Expand Down
63 changes: 63 additions & 0 deletions policy/examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)

58 changes: 58 additions & 0 deletions policy/examples/required-parking.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
]
}
]
}
}

0 comments on commit 5625dc4

Please sign in to comment.