Skip to content

Commit 904a80b

Browse files
Update to v2.1 (#38)
1 parent b177066 commit 904a80b

File tree

5 files changed

+4
-85
lines changed

5 files changed

+4
-85
lines changed

free_bike_status.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
"description": "GBFS version number to which the feed conforms, according to the versioning framework (added in v1.1).",
1919
"type": "string",
2020
"enum": [
21-
"2.1-RC2",
2221
"2.1",
2322
"3.0-RC",
2423
"3.0"
@@ -95,10 +94,6 @@
9594
"station_id": {
9695
"description": "Identifier referencing the station_id if the vehicle is currently at a station (added in v2.1-RC2).",
9796
"type": "string"
98-
},
99-
"pricing_plan_id": {
100-
"description": "The plan_id of the pricing plan this vehicle is eligible for (added in v2.1-RC2).",
101-
"type": "string"
10297
}
10398
},
10499
"required": [

gbfs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema",
33
"$id": "https://github.com/NABSA/gbfs/blob/master/gbfs.md#gbfsjson",
4-
"description": "Auto-discovery file that links to all of the other files publiished by the system.",
4+
"description": "Auto-discovery file that links to all of the other files published by the system.",
55
"type": "object",
66
"properties": {
77
"last_updated": {

gbfs_versions.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"2.0",
4949
"2.1-RC",
5050
"2.1-RC2",
51+
"2.1",
5152
"3.0-RC",
5253
"3.0"
5354
]

station_status.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema",
33
"$id": "https://github.com/NABSA/gbfs/blob/master/gbfs.md#station_statusjson",
4-
"description": "Describes the capacity and rental availablility of the station",
4+
"description": "Describes the capacity and rental availability of the station",
55
"type": "object",
66
"properties": {
77
"last_updated": {

system_pricing_plans.json

Lines changed: 1 addition & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@
1818
"description": "GBFS version number to which the feed conforms, according to the versioning framework (added in v1.1).",
1919
"type": "string",
2020
"enum": [
21-
"2.1-RC2",
22-
"2.1",
23-
"3.0-RC",
24-
"3.0"
21+
"2.1"
2522
]
2623
},
2724
"data": {
@@ -63,80 +60,6 @@
6360
"description": {
6461
"description": "Customer-readable description of the pricing plan.",
6562
"type": "string"
66-
},
67-
"per_km_pricing": {
68-
"description": "Array of segments when the price is a function of distance travelled, displayed in kilometers (added in v2.1-RC2).",
69-
"type": "array",
70-
"items": {
71-
"type": "object",
72-
"properties": {
73-
"start": {
74-
"description": "Number of kilometers that have to elapse before this segment starts applying (added in v2.1-RC2).",
75-
"type": "number",
76-
"minimum": 0
77-
},
78-
"rate": {
79-
"description": "Rate that is charged for each kilometer interval after the start (added in v2.1-RC2).",
80-
"type": "number"
81-
},
82-
"interval": {
83-
"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).",
84-
"type": "number",
85-
"minimum": 0
86-
},
87-
"end": {
88-
"description": "The kilometer at which the rate will no longer apply (added in v2.1-RC2).",
89-
"type": "number",
90-
"minimum": 0
91-
}
92-
},
93-
"dependencies": {
94-
"per_km_pricing": [
95-
"start",
96-
"rate",
97-
"interval"
98-
]
99-
}
100-
}
101-
},
102-
"per_min_pricing": {
103-
"description": "Array of segments when the price is a function of time travelled, displayed in minutes (added in v2.1-RC2).",
104-
"type": "array",
105-
"items": {
106-
"type": "object",
107-
"properties": {
108-
"start": {
109-
"description": "Number of minutes that have to elapse before this segment starts applying (added in v2.1-RC2).",
110-
"type": "number",
111-
"minimum": 0
112-
},
113-
"rate": {
114-
"description": "Rate that is charged for each minute interval after the start (added in v2.1-RC2).",
115-
"type": "number"
116-
},
117-
"interval": {
118-
"description": "Interval in minutes at which the rate of this segment is either reapplied (added in v2.1-RC2).",
119-
"type": "number",
120-
"minimum": "0"
121-
},
122-
"end": {
123-
"description": "The minute at which the rate will no longer apply (added in v2.1-RC2).",
124-
"type": "number",
125-
"minimum": 0
126-
}
127-
},
128-
"dependencies": {
129-
"per_min_pricing": [
130-
"start",
131-
"rate",
132-
"interval"
133-
]
134-
}
135-
}
136-
},
137-
"surge_pricing": {
138-
"description": "Is there currently an increase in price in response to increased demand in this pricing plan? (added in v2.1-RC2)",
139-
"type": "boolean"
14063
}
14164
}
14265
},

0 commit comments

Comments
 (0)