Skip to content

Commit

Permalink
Update to v2.1 (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
josee-sabourin authored Mar 30, 2021
1 parent b177066 commit 904a80b
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 85 deletions.
5 changes: 0 additions & 5 deletions free_bike_status.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"description": "GBFS version number to which the feed conforms, according to the versioning framework (added in v1.1).",
"type": "string",
"enum": [
"2.1-RC2",
"2.1",
"3.0-RC",
"3.0"
Expand Down Expand Up @@ -95,10 +94,6 @@
"station_id": {
"description": "Identifier referencing the station_id if the vehicle is currently at a station (added in v2.1-RC2).",
"type": "string"
},
"pricing_plan_id": {
"description": "The plan_id of the pricing plan this vehicle is eligible for (added in v2.1-RC2).",
"type": "string"
}
},
"required": [
Expand Down
2 changes: 1 addition & 1 deletion gbfs.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://github.com/NABSA/gbfs/blob/master/gbfs.md#gbfsjson",
"description": "Auto-discovery file that links to all of the other files publiished by the system.",
"description": "Auto-discovery file that links to all of the other files published by the system.",
"type": "object",
"properties": {
"last_updated": {
Expand Down
1 change: 1 addition & 0 deletions gbfs_versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"2.0",
"2.1-RC",
"2.1-RC2",
"2.1",
"3.0-RC",
"3.0"
]
Expand Down
2 changes: 1 addition & 1 deletion station_status.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://github.com/NABSA/gbfs/blob/master/gbfs.md#station_statusjson",
"description": "Describes the capacity and rental availablility of the station",
"description": "Describes the capacity and rental availability of the station",
"type": "object",
"properties": {
"last_updated": {
Expand Down
79 changes: 1 addition & 78 deletions system_pricing_plans.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@
"description": "GBFS version number to which the feed conforms, according to the versioning framework (added in v1.1).",
"type": "string",
"enum": [
"2.1-RC2",
"2.1",
"3.0-RC",
"3.0"
"2.1"
]
},
"data": {
Expand Down Expand Up @@ -63,80 +60,6 @@
"description": {
"description": "Customer-readable description of the pricing plan.",
"type": "string"
},
"per_km_pricing": {
"description": "Array of segments when the price is a function of distance travelled, displayed in kilometers (added in v2.1-RC2).",
"type": "array",
"items": {
"type": "object",
"properties": {
"start": {
"description": "Number of kilometers that have to elapse before this segment starts applying (added in v2.1-RC2).",
"type": "number",
"minimum": 0
},
"rate": {
"description": "Rate that is charged for each kilometer interval after the start (added in v2.1-RC2).",
"type": "number"
},
"interval": {
"description": "Interval in kilometers at which the rate of this segment is either reapplied indefinitely, or if defined, up until (but not including) end kilometer (added in v2.1-RC2).",
"type": "number",
"minimum": 0
},
"end": {
"description": "The kilometer at which the rate will no longer apply (added in v2.1-RC2).",
"type": "number",
"minimum": 0
}
},
"dependencies": {
"per_km_pricing": [
"start",
"rate",
"interval"
]
}
}
},
"per_min_pricing": {
"description": "Array of segments when the price is a function of time travelled, displayed in minutes (added in v2.1-RC2).",
"type": "array",
"items": {
"type": "object",
"properties": {
"start": {
"description": "Number of minutes that have to elapse before this segment starts applying (added in v2.1-RC2).",
"type": "number",
"minimum": 0
},
"rate": {
"description": "Rate that is charged for each minute interval after the start (added in v2.1-RC2).",
"type": "number"
},
"interval": {
"description": "Interval in minutes at which the rate of this segment is either reapplied (added in v2.1-RC2).",
"type": "number",
"minimum": "0"
},
"end": {
"description": "The minute at which the rate will no longer apply (added in v2.1-RC2).",
"type": "number",
"minimum": 0
}
},
"dependencies": {
"per_min_pricing": [
"start",
"rate",
"interval"
]
}
}
},
"surge_pricing": {
"description": "Is there currently an increase in price in response to increased demand in this pricing plan? (added in v2.1-RC2)",
"type": "boolean"
}
}
},
Expand Down

0 comments on commit 904a80b

Please sign in to comment.