From 53f6bf6aa410179184e970002c11bc163135f305 Mon Sep 17 00:00:00 2001 From: Cameron Monagle Date: Wed, 27 Sep 2023 10:31:13 -0400 Subject: [PATCH 1/2] Pricing Plans: replaces integer with float in interval --- gbfs.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gbfs.md b/gbfs.md index 2ce9b844..b90e19f3 100644 --- a/gbfs.md +++ b/gbfs.md @@ -1126,12 +1126,12 @@ Field Name | REQUIRED | Type | Defines \- `per_km_pricing`
*(added in v2.2)* | OPTIONAL | Array | Array of segments when the price is a function of distance traveled, displayed in kilometers.

Total cost is the addition of `price` and all segments in `per_km_pricing` and `per_min_pricing`. If this array is not provided, there are no variable costs based on distance.   \- `start`
*(added in v2.2)* | Conditionally REQUIRED | Non-Negative Integer | REQUIRED if `per_km_pricing` is defined. The kilometer at which this segment rate starts being charged *(inclusive)*.   \- `rate`
*(added in v2.2)* | Conditionally REQUIRED | Float | REQUIRED if `per_km_pricing` is defined. Rate that is charged for each kilometer `interval` after the `start`. Can be a negative number, which indicates that the traveler will receive a discount. -  \- `interval`
*(added in v2.2)* | Conditionally REQUIRED | Non-Negative Integer | REQUIRED if `per_km_pricing` is defined. Interval in kilometers at which the `rate` of this segment is either reapplied indefinitely, or if defined, up until (but not including) `end` kilometer.

An interval of 0 indicates the rate is only charged once. +  \- `interval`
*(added in v2.2)* | Conditionally REQUIRED | Non-Negative Float | REQUIRED if `per_km_pricing` is defined. Interval in kilometers at which the `rate` of this segment is either reapplied indefinitely, or if defined, up until (but not including) `end` kilometer.

An interval of 0 indicates the rate is only charged once.   \-  `end`
*(added in v2.2)* | OPTIONAL | Non-Negative Integer | The kilometer at which the rate will no longer apply *(exclusive)* for example, if `end` is `20` the rate no longer applies at 20.00 km.

If this field is empty, the price issued for this segment is charged until the trip ends, in addition to the cost of any subsequent segments. \- `per_min_pricing`
*(added in v2.2)* | OPTIONAL | Array | Array of segments when the price is a function of time traveled, displayed in minutes.

Total cost is the addition of `price` and all segments in `per_km_pricing` and `per_min_pricing`. If this array is not provided, there are no variable costs based on time.   \- `start`
*(added in v2.2)* | Conditionally REQUIRED | Non-Negative Integer | REQUIRED if `per_min_pricing` is defined. The minute at which this segment rate starts being charged *(inclusive)*.   \- `rate`
*(added in v2.2)* | Conditionally REQUIRED | Float | REQUIRED if `per_min_pricing` is defined. Rate that is charged for each minute `interval` after the `start`. Can be a negative number, which indicates that the traveler will receive a discount. -  \- `interval`
*(added in v2.2)* | Conditionally REQUIRED | Non-Negative Integer | REQUIRED if `per_min_pricing` is defined. Interval in minutes at which the `rate` of this segment is either reapplied indefinitely, or up until (but not including) the `end` minute, if `end` is defined.

An interval of 0 indicates the rate is only charged once. +  \- `interval`
*(added in v2.2)* | Conditionally REQUIRED | Non-Negative Float | REQUIRED if `per_min_pricing` is defined. Interval in minutes at which the `rate` of this segment is either reapplied indefinitely, or up until (but not including) the `end` minute, if `end` is defined.

An interval of 0 indicates the rate is only charged once.   \-  `end`
*(added in v2.2)* | OPTIONAL | Non-Negative Integer | The minute at which the rate will no longer apply *(exclusive)* for example, if `end` is `20` the rate no longer applies after 19:59.

If this field is empty, the price issued for this segment is charged until the trip ends, in addition to the cost of any subsequent segments. \- `surge_pricing`
*(added in v2.2)* | OPTIONAL | Boolean | Is there currently an increase in price in response to increased demand in this pricing plan? If this field is empty, it means there is no surge pricing in effect.

`true` - Surge pricing is in effect.
`false` - Surge pricing is not in effect. From f80dfd2ded6a8e48bfeb53cf60868f5e34218422 Mon Sep 17 00:00:00 2001 From: Fabien Richard-Allouard Date: Thu, 2 Nov 2023 12:31:20 -0400 Subject: [PATCH 2/2] As of v3.0-RC2 --- gbfs.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gbfs.md b/gbfs.md index b90e19f3..90647968 100644 --- a/gbfs.md +++ b/gbfs.md @@ -1126,12 +1126,12 @@ Field Name | REQUIRED | Type | Defines \- `per_km_pricing`
*(added in v2.2)* | OPTIONAL | Array | Array of segments when the price is a function of distance traveled, displayed in kilometers.

Total cost is the addition of `price` and all segments in `per_km_pricing` and `per_min_pricing`. If this array is not provided, there are no variable costs based on distance.   \- `start`
*(added in v2.2)* | Conditionally REQUIRED | Non-Negative Integer | REQUIRED if `per_km_pricing` is defined. The kilometer at which this segment rate starts being charged *(inclusive)*.   \- `rate`
*(added in v2.2)* | Conditionally REQUIRED | Float | REQUIRED if `per_km_pricing` is defined. Rate that is charged for each kilometer `interval` after the `start`. Can be a negative number, which indicates that the traveler will receive a discount. -  \- `interval`
*(added in v2.2)* | Conditionally REQUIRED | Non-Negative Float | REQUIRED if `per_km_pricing` is defined. Interval in kilometers at which the `rate` of this segment is either reapplied indefinitely, or if defined, up until (but not including) `end` kilometer.

An interval of 0 indicates the rate is only charged once. +  \- `interval`
*(added in v2.2)* | Conditionally REQUIRED | Non-Negative Float
*(as of v3.0-RC2)* | REQUIRED if `per_km_pricing` is defined. Interval in kilometers at which the `rate` of this segment is either reapplied indefinitely, or if defined, up until (but not including) `end` kilometer.

An interval of 0 indicates the rate is only charged once.   \-  `end`
*(added in v2.2)* | OPTIONAL | Non-Negative Integer | The kilometer at which the rate will no longer apply *(exclusive)* for example, if `end` is `20` the rate no longer applies at 20.00 km.

If this field is empty, the price issued for this segment is charged until the trip ends, in addition to the cost of any subsequent segments. \- `per_min_pricing`
*(added in v2.2)* | OPTIONAL | Array | Array of segments when the price is a function of time traveled, displayed in minutes.

Total cost is the addition of `price` and all segments in `per_km_pricing` and `per_min_pricing`. If this array is not provided, there are no variable costs based on time.   \- `start`
*(added in v2.2)* | Conditionally REQUIRED | Non-Negative Integer | REQUIRED if `per_min_pricing` is defined. The minute at which this segment rate starts being charged *(inclusive)*.   \- `rate`
*(added in v2.2)* | Conditionally REQUIRED | Float | REQUIRED if `per_min_pricing` is defined. Rate that is charged for each minute `interval` after the `start`. Can be a negative number, which indicates that the traveler will receive a discount. -  \- `interval`
*(added in v2.2)* | Conditionally REQUIRED | Non-Negative Float | REQUIRED if `per_min_pricing` is defined. Interval in minutes at which the `rate` of this segment is either reapplied indefinitely, or up until (but not including) the `end` minute, if `end` is defined.

An interval of 0 indicates the rate is only charged once. +  \- `interval`
*(added in v2.2)* | Conditionally REQUIRED | Non-Negative Float
*(as of v3.0-RC2)* | REQUIRED if `per_min_pricing` is defined. Interval in minutes at which the `rate` of this segment is either reapplied indefinitely, or up until (but not including) the `end` minute, if `end` is defined.

An interval of 0 indicates the rate is only charged once.   \-  `end`
*(added in v2.2)* | OPTIONAL | Non-Negative Integer | The minute at which the rate will no longer apply *(exclusive)* for example, if `end` is `20` the rate no longer applies after 19:59.

If this field is empty, the price issued for this segment is charged until the trip ends, in addition to the cost of any subsequent segments. \- `surge_pricing`
*(added in v2.2)* | OPTIONAL | Boolean | Is there currently an increase in price in response to increased demand in this pricing plan? If this field is empty, it means there is no surge pricing in effect.

`true` - Surge pricing is in effect.
`false` - Surge pricing is not in effect.