Skip to content

Commit

Permalink
Various patches
Browse files Browse the repository at this point in the history
patches to version numbers and data types in code examples
  • Loading branch information
Mitch Vars committed Apr 26, 2022
1 parent d9c9261 commit 25362ff
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 71 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*~
.DS_Store
.idea
151 changes: 80 additions & 71 deletions gbfs.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
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.

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

## Terminology
Expand Down Expand Up @@ -336,6 +336,7 @@ Field Name | REQUIRED | Type | Defines
{
"last_updated":1611598155,
"ttl":1800,
"version": "2.1",
"data":{
"phone_number":"1-800-555-1234",
"name":"Example Ride",
Expand Down Expand Up @@ -636,7 +637,7 @@ Field Name | REQUIRED | Type | Defines
"is_disabled":false,
"vehicle_type_id":"def456",
"current_range_meters":6543,
"station_id":86,
"station_id":"86",
"pricing_plan_id":"plan3"
}
]
Expand Down Expand Up @@ -705,6 +706,7 @@ Field Name | REQUIRED | Type | Defines
{
"last_updated":1604333830,
"ttl":86400,
"version": "2.1",
"data":{
"calendars":[
{
Expand Down Expand Up @@ -734,6 +736,7 @@ Field Name | REQUIRED | Type | Defines
{
"last_updated":1604332380,
"ttl":86400,
"version": "2.1",
"data":{
"regions":[
{
Expand Down Expand Up @@ -795,6 +798,7 @@ Field Name | REQUIRED | Type | Defines
{
"last_updated":1604198100,
"ttl":60,
"version": "2.1",
"data":{
"alerts":[
{
Expand All @@ -807,8 +811,8 @@ Field Name | REQUIRED | Type | Defines
],
"times":[
{
"start":"1604448000",
"end":"1604674800"
"start":1604448000,
"end":1604674800
}
],
"url":"https://example.com/more-info",
Expand Down Expand Up @@ -846,83 +850,88 @@ Field Name | REQUIRED | Type | Defines
##### Example:
```jsonc
{
"geofencing_zones":[
{
"type":"FeatureCollection",
"features":[
{
"type":"Feature",
"geometry":{
"type":"MultiPolygon",
"coordinates":[
[
"last_updated":1604198100,
"ttl":60,
"version":"2.1",
"data":{
"geofencing_zones":[
{
"type":"FeatureCollection",
"features":[
{
"type":"Feature",
"geometry":{
"type":"MultiPolygon",
"coordinates":[
[
[
-122.578067,
45.562982
],
[
-122.661838,
45.562741
],
[
-122.661151,
45.504542
],
[
-122.578926,
45.5046625
],
[
-122.578067,
45.562982
[
-122.578067,
45.562982
],
[
-122.661838,
45.562741
],
[
-122.661151,
45.504542
],
[
-122.578926,
45.5046625
],
[
-122.578067,
45.562982
]
]
]
],
[
],
[
[
-122.650680,
45.548197
],
[
-122.650852,
45.534731
],
[
-122.630939,
45.535212
],
[
-122.630424,
45.548197
],
[
-122.650680,
45.548197
[
-122.650680,
45.548197
],
[
-122.650852,
45.534731
],
[
-122.630939,
45.535212
],
[
-122.630424,
45.548197
],
[
-122.650680,
45.548197
]
]
]
]
]
},
"properties":{
"name":"NE 24th/NE Knott",
"start":1593878400,
"end":1593907260,
"rules":{
"vehicle_type_id":[
"moped1",
"car1"
],
"ride_allowed":false,
"ride_through_allowed":true,
"maximum_speed_kph":10
},
"properties":{
"name":"NE 24th/NE Knott",
"start":1593878400,
"end":1593907260,
"rules":{
"vehicle_type_id":[
"moped1",
"car1"
],
"ride_allowed":false,
"ride_through_allowed":true,
"maximum_speed_kph":10
}
}
}
}
]
}
]
]
}
]
}
}
```
## Deep Links *(added in v1.1)*
Expand Down

0 comments on commit 25362ff

Please sign in to comment.