Skip to content

Commit 25362ff

Browse files
committed
Various patches
patches to version numbers and data types in code examples
1 parent d9c9261 commit 25362ff

File tree

2 files changed

+81
-71
lines changed

2 files changed

+81
-71
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
*~
22
.DS_Store
3+
.idea

gbfs.md

Lines changed: 80 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
This document explains the types of files and data that comprise the General Bikeshare Feed Specification (GBFS) and defines the fields used in all of those files.
44

55
# Reference version
6-
####This documentation refers to **v2.0 Release**. <br>
6+
####This documentation refers to **v2.1 Release**. <br>
77
For past and upcoming versions see the [README](README.md#read-the-spec--version-history).
88

99
## Terminology
@@ -336,6 +336,7 @@ Field Name | REQUIRED | Type | Defines
336336
{
337337
"last_updated":1611598155,
338338
"ttl":1800,
339+
"version": "2.1",
339340
"data":{
340341
"phone_number":"1-800-555-1234",
341342
"name":"Example Ride",
@@ -636,7 +637,7 @@ Field Name | REQUIRED | Type | Defines
636637
"is_disabled":false,
637638
"vehicle_type_id":"def456",
638639
"current_range_meters":6543,
639-
"station_id":86,
640+
"station_id":"86",
640641
"pricing_plan_id":"plan3"
641642
}
642643
]
@@ -705,6 +706,7 @@ Field Name | REQUIRED | Type | Defines
705706
{
706707
"last_updated":1604333830,
707708
"ttl":86400,
709+
"version": "2.1",
708710
"data":{
709711
"calendars":[
710712
{
@@ -734,6 +736,7 @@ Field Name | REQUIRED | Type | Defines
734736
{
735737
"last_updated":1604332380,
736738
"ttl":86400,
739+
"version": "2.1",
737740
"data":{
738741
"regions":[
739742
{
@@ -795,6 +798,7 @@ Field Name | REQUIRED | Type | Defines
795798
{
796799
"last_updated":1604198100,
797800
"ttl":60,
801+
"version": "2.1",
798802
"data":{
799803
"alerts":[
800804
{
@@ -807,8 +811,8 @@ Field Name | REQUIRED | Type | Defines
807811
],
808812
"times":[
809813
{
810-
"start":"1604448000",
811-
"end":"1604674800"
814+
"start":1604448000,
815+
"end":1604674800
812816
}
813817
],
814818
"url":"https://example.com/more-info",
@@ -846,83 +850,88 @@ Field Name | REQUIRED | Type | Defines
846850
##### Example:
847851
```jsonc
848852
{
849-
"geofencing_zones":[
850-
{
851-
"type":"FeatureCollection",
852-
"features":[
853-
{
854-
"type":"Feature",
855-
"geometry":{
856-
"type":"MultiPolygon",
857-
"coordinates":[
858-
[
853+
"last_updated":1604198100,
854+
"ttl":60,
855+
"version":"2.1",
856+
"data":{
857+
"geofencing_zones":[
858+
{
859+
"type":"FeatureCollection",
860+
"features":[
861+
{
862+
"type":"Feature",
863+
"geometry":{
864+
"type":"MultiPolygon",
865+
"coordinates":[
859866
[
860867
[
861-
-122.578067,
862-
45.562982
863-
],
864-
[
865-
-122.661838,
866-
45.562741
867-
],
868-
[
869-
-122.661151,
870-
45.504542
871-
],
872-
[
873-
-122.578926,
874-
45.5046625
875-
],
876-
[
877-
-122.578067,
878-
45.562982
868+
[
869+
-122.578067,
870+
45.562982
871+
],
872+
[
873+
-122.661838,
874+
45.562741
875+
],
876+
[
877+
-122.661151,
878+
45.504542
879+
],
880+
[
881+
-122.578926,
882+
45.5046625
883+
],
884+
[
885+
-122.578067,
886+
45.562982
887+
]
879888
]
880-
]
881-
],
882-
[
889+
],
883890
[
884891
[
885-
-122.650680,
886-
45.548197
887-
],
888-
[
889-
-122.650852,
890-
45.534731
891-
],
892-
[
893-
-122.630939,
894-
45.535212
895-
],
896-
[
897-
-122.630424,
898-
45.548197
899-
],
900-
[
901-
-122.650680,
902-
45.548197
892+
[
893+
-122.650680,
894+
45.548197
895+
],
896+
[
897+
-122.650852,
898+
45.534731
899+
],
900+
[
901+
-122.630939,
902+
45.535212
903+
],
904+
[
905+
-122.630424,
906+
45.548197
907+
],
908+
[
909+
-122.650680,
910+
45.548197
911+
]
903912
]
904913
]
905914
]
906-
]
907-
},
908-
"properties":{
909-
"name":"NE 24th/NE Knott",
910-
"start":1593878400,
911-
"end":1593907260,
912-
"rules":{
913-
"vehicle_type_id":[
914-
"moped1",
915-
"car1"
916-
],
917-
"ride_allowed":false,
918-
"ride_through_allowed":true,
919-
"maximum_speed_kph":10
915+
},
916+
"properties":{
917+
"name":"NE 24th/NE Knott",
918+
"start":1593878400,
919+
"end":1593907260,
920+
"rules":{
921+
"vehicle_type_id":[
922+
"moped1",
923+
"car1"
924+
],
925+
"ride_allowed":false,
926+
"ride_through_allowed":true,
927+
"maximum_speed_kph":10
928+
}
920929
}
921930
}
922-
}
923-
]
924-
}
925-
]
931+
]
932+
}
933+
]
934+
}
926935
}
927936
```
928937
## Deep Links *(added in v1.1)*

0 commit comments

Comments
 (0)