Skip to content

Commit

Permalink
Update version numbers to v3.1-RC in the spec
Browse files Browse the repository at this point in the history
  • Loading branch information
richfab committed May 22, 2024
1 parent ca2f933 commit 57c3b99
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions gbfs.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This document explains the types of files and data that comprise the General Bik

## Reference version

This documentation refers to **v3.0**.
This documentation refers to **v3.1-RC**.

For past and upcoming versions see the [README](https://github.com/MobilityData/gbfs/blob/master/README.md#current-version-recommended).

Expand Down Expand Up @@ -265,7 +265,7 @@ Field Name | REQUIRED | Type | Defines
{
"last_updated": "2023-07-17T13:34:13+02:00",
"ttl": 3600,
"version": "3.0",
"version": "3.1-RC",
"data": {
"name": [
{
Expand Down Expand Up @@ -296,7 +296,7 @@ Field Name | REQUIRED | Type | Defines
{
"last_updated": "2023-07-17T13:34:13+02:00",
"ttl": 0,
"version": "3.0",
"version": "3.1-RC",
"data": {
"feeds": [
{
Expand Down Expand Up @@ -326,27 +326,27 @@ Field Name | REQUIRED | Type | Defines
`datasets[].versions` | Yes | Array<Object> | Contains one object for each of the available versions of a feed. The array MUST be sorted by increasing MAJOR and MINOR version number.
`datasets[].versions[].version` | Yes | String | The semantic version of the feed in the form `X.Y`.
`datasets[].versions[].url` | Yes | URL | URL of the corresponding `gbfs.json` endpoint.
`datasets[].area` | OPTIONAL | GeoJSON MultiPolygon | A GeoJSON MultiPolygon that describes the operating area. If `area` is supplied, then the record describes the general operating area of the system for the purpose of discovery. Geographic details of the system's operating restrictions must be explicitly specified using station locations and geofencing zones, where appropriate.
`datasets[].country_code` | OPTIONAL | Country Code | The ISO 3166-1 alpha-2 country code of the operating area. The field MUST NOT be specified if the operating area spans multiple countries.
`datasets[].area` <br/>*(added in v3.1)* | OPTIONAL | GeoJSON MultiPolygon | A GeoJSON MultiPolygon that describes the operating area. If `area` is supplied, then the record describes the general operating area of the system for the purpose of discovery. Geographic details of the system's operating restrictions must be explicitly specified using station locations and geofencing zones, where appropriate.
`datasets[].country_code` <br/>*(added in v3.1)* | OPTIONAL | Country Code | The ISO 3166-1 alpha-2 country code of the operating area. The field MUST NOT be specified if the operating area spans multiple countries.

**Example:**
```json
{
"last_updated": "2023-07-17T13:34:13+02:00",
"ttl":0,
"version":"3.0",
"version": "3.1-RC",
"data":{
"datasets":[
{
"system_id":"example_berlin",
"versions":[
{
"version":"2.0",
"version": "2.0",
"url":"https://berlin.example.com/gbfs/2/gbfs"
},
{
"version":"3.0",
"url":"https://berlin.example.com/gbfs/3/gbfs"
"version": "3.1-RC",
"url":"https://berlin.example.com/gbfs/3.1-RC/gbfs"
}
],
"area": {
Expand Down Expand Up @@ -392,12 +392,12 @@ Field Name | REQUIRED | Type | Defines
"system_id":"example_paris",
"versions":[
{
"version":"2.0",
"version": "2.0",
"url":"https://paris.example.com/gbfs/2/gbfs"
},
{
"version":"3.0",
"url":"https://paris.example.com/gbfs/3/gbfs"
"version": "3.1-RC",
"url":"https://paris.example.com/gbfs/3.1-RC/gbfs"
}
],
"area": {
Expand Down Expand Up @@ -465,16 +465,16 @@ Field Name | REQUIRED | Type | Defines
{
"last_updated": "2023-07-17T13:34:13+02:00",
"ttl": 0,
"version": "3.0",
"version": "3.1-RC",
"data": {
"versions": [
{
"version": "2.0",
"url": "https://www.example.com/gbfs/2/gbfs"
},
{
"version": "3.0",
"url": "https://www.example.com/gbfs/3/gbfs"
"version": "3.1-RC",
"url": "https://www.example.com/gbfs/3.1-RC/gbfs"
}
]
}
Expand Down Expand Up @@ -530,7 +530,7 @@ Field Name | REQUIRED | Type | Defines
{
"last_updated": "2023-07-17T13:34:13+02:00",
"ttl": 1800,
"version": "3.0",
"version": "3.1-RC",
"data": {
"system_id": "example_cityname",
"languages": ["en"],
Expand Down Expand Up @@ -642,7 +642,7 @@ Field Name | REQUIRED | Type | Defines
{
"last_updated": "2023-07-17T13:34:13+02:00",
"ttl": 0,
"version": "3.0",
"version": "3.1-RC",
"data": {
"vehicle_types": [
{
Expand Down Expand Up @@ -825,7 +825,7 @@ Field Name | REQUIRED | Type | Defines
{
"last_updated": "2023-07-17T13:34:13+02:00",
"ttl": 0,
"version": "3.0",
"version": "3.1-RC",
"data": {
"stations": [
{
Expand Down Expand Up @@ -861,7 +861,7 @@ Field Name | REQUIRED | Type | Defines
{
"last_updated": "2023-07-17T13:34:13+02:00",
"ttl": 0,
"version": "3.0",
"version": "3.1-RC",
"data": {
"stations": [
{
Expand Down Expand Up @@ -953,7 +953,7 @@ Field Name | REQUIRED | Type | Defines
{
"last_updated": "2023-07-17T13:34:13+02:00",
"ttl": 0,
"version": "3.0",
"version": "3.1-RC",
"data": {
"stations": [
{
Expand Down Expand Up @@ -1056,7 +1056,7 @@ Field Name | REQUIRED | Type | Defines
{
"last_updated": "2023-07-17T13:34:13+02:00",
"ttl":0,
"version":"3.0",
"version": "3.1-RC",
"data":{
"vehicles":[
{
Expand Down Expand Up @@ -1094,7 +1094,7 @@ Field Name | REQUIRED | Type | Defines
{
"last_updated": "2023-07-17T13:34:13+02:00",
"ttl":0,
"version":"3.0",
"version": "3.1-RC",
"data":{
"vehicles":[
{
Expand Down Expand Up @@ -1157,7 +1157,7 @@ Field Name | REQUIRED | Type | Defines
{
"last_updated": "2023-07-17T13:34:13+02:00",
"ttl": 86400,
"version": "3.0",
"version": "3.1-RC",
"data": {
"regions": [
{
Expand Down Expand Up @@ -1237,7 +1237,7 @@ The user does not pay more than the base price for the first 10 km. After 10 km
{
"last_updated": "2023-07-17T13:34:13+02:00",
"ttl": 0,
"version": "3.0",
"version": "3.1-RC",
"data": {
"plans": [
{
Expand Down Expand Up @@ -1290,7 +1290,7 @@ This example demonstrates a pricing scheme that has a rate both by minute and by
{
"last_updated": "2023-07-17T13:34:13+02:00",
"ttl": 0,
"version": "3.0",
"version": "3.1-RC",
"data": {
"plans": [
{
Expand Down Expand Up @@ -1356,7 +1356,7 @@ Field Name | REQUIRED | Type | Defines
{
"last_updated": "2023-07-17T13:34:13+02:00",
"ttl": 60,
"version": "3.0",
"version": "3.1-RC",
"data": {
"alerts": [
{
Expand Down Expand Up @@ -1453,7 +1453,7 @@ See examples below.
{
"last_updated": "2023-07-17T13:34:13+02:00",
"ttl": 60,
"version": "3.0",
"version": "3.1-RC",
"data": {
"geofencing_zones": {
"type": "FeatureCollection",
Expand Down Expand Up @@ -1714,7 +1714,7 @@ Other supported parameters include:
{
"last_updated": "2023-07-17T13:34:13+02:00",
"ttl": 60,
"version": "3.0",
"version": "3.1-RC",
"data": {
"name": [
{
Expand Down Expand Up @@ -1745,7 +1745,7 @@ Other supported parameters include:
{
"last_updated": "2023-07-17T13:34:13+02:00",
"ttl": 60,
"version": "3.0",
"version": "3.1-RC",
"data": {
"stations": [
{
Expand Down Expand Up @@ -1778,7 +1778,7 @@ Note that the Android URI and iOS Universal Link URLs do not necessarily use the
{
"last_updated": "2023-07-17T13:34:13+02:00",
"ttl": 60,
"version": "3.0",
"version": "3.1-RC",
"data": {
"name": [
{
Expand Down Expand Up @@ -1809,7 +1809,7 @@ Note that the Android URI and iOS Universal Link URLs do not necessarily use the
{
"last_updated": "2023-07-17T13:34:13+02:00",
"ttl": 60,
"version": "3.0",
"version": "3.1-RC",
"data": {
"stations": [
{
Expand Down Expand Up @@ -1840,7 +1840,7 @@ Note that the Android URI and iOS Universal Link URLs do not necessarily use the
{
"last_updated": "2023-07-17T13:34:13+02:00",
"ttl": 60,
"version": "3.0",
"version": "3.1-RC",
"data": {
"stations": [
{
Expand Down

0 comments on commit 57c3b99

Please sign in to comment.