Skip to content

Commit

Permalink
Update URLs from NABSA to MobilityData repo
Browse files Browse the repository at this point in the history
  • Loading branch information
richfab committed Nov 21, 2023
1 parent 871c705 commit 87b9c02
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ The function is only compatible with Netlify Function (https://www.netlify.com/p

- check-systems

Check-systems is a CLI tool to validate the whole “systems.csv” from https://github.com/NABSA/gbfs locally
Check-systems is a CLI tool to validate the whole “systems.csv” from https://github.com/MobilityData/gbfs locally

# Code convention

Expand Down
8 changes: 4 additions & 4 deletions RULES.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ The validator will check for the presence of the files depending on the options
<img width="350" alt="tick boxes" src="https://user-images.githubusercontent.com/63653518/156194900-bab75f85-f681-43a4-84d3-08c9d6fed4df.png">


The Validator also checks the conditional requirement of the file `vehicle_types.json`: as per the [official GBFS specification](https://github.com/NABSA/gbfs/blob/master/gbfs.md#vehicle_typesjson), it is required of systems that include information about vehicle types in the `vehicle_status.json file`.
The Validator also checks the conditional requirement of the file `vehicle_types.json`: as per the [official GBFS specification](https://github.com/MobilityData/gbfs/blob/master/gbfs.md#vehicle_typesjson), it is required of systems that include information about vehicle types in the `vehicle_status.json file`.


# Fields presence and field types
## Required fields
Each file in GBFS has to be structured in a specific [output format](https://github.com/NABSA/gbfs/blob/master/gbfs.md#output-format).
Each file in GBFS has to be structured in a specific [output format](https://github.com/MobilityData/gbfs/blob/master/gbfs.md#output-format).
All the fields that are described as **required** in GBFS will be checked by the validator.
Some fields are required only if the parent field is defined, and this is considered a **conditionally required** field.

Expand Down Expand Up @@ -68,8 +68,8 @@ The following conditions are all covered by this validator:
`current_range_meters`

- **conditions that are not covered by this validator**
`num_docks_available` in station_status.json`: because it depends on something that isn't defined in the GBFS files: the docking capacity. See the official GBFS spec about this field [here](https://github.com/NABSA/gbfs/blob/master/gbfs.md#station_statusjson).\
`vehicle_docks_available` in station_status.json`: because it depends on something that isn't defined in the GBFS files: *REQUIRED in feeds where [...] certain docks are only able to accept certain vehicle types.* See the official GBFS spec about this field [here](https://github.com/NABSA/gbfs/blob/master/gbfs.md#station_statusjson).\
`num_docks_available` in station_status.json`: because it depends on something that isn't defined in the GBFS files: the docking capacity. See the official GBFS spec about this field [here](https://github.com/MobilityData/gbfs/blob/master/gbfs.md#station_statusjson).\
`vehicle_docks_available` in station_status.json`: because it depends on something that isn't defined in the GBFS files: *REQUIRED in feeds where [...] certain docks are only able to accept certain vehicle types.* See the official GBFS spec about this field [here](https://github.com/MobilityData/gbfs/blob/master/gbfs.md#station_statusjson).\
`system_id` in `free_bike_status.json`

## Field types
Expand Down
2 changes: 1 addition & 1 deletion check-systems/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# check-systems

Download systems.csv from https://github.com/NABSA/gbfs
Download systems.csv from https://github.com/MobilityData/gbfs

`node check-systems/index.js systems.csv`
2 changes: 1 addition & 1 deletion website/src/components/Result.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const errorsCountFormated = computed(() => {
Detected version <b>{{ result.summary.version.detected }} </b> and
validate with
<a
:href="`https://github.com/NABSA/gbfs/blob/v${result.summary.version.validated}/gbfs.md`"
:href="`https://github.com/MobilityData/gbfs/blob/v${result.summary.version.validated}/gbfs.md`"
><b>{{ result.summary.version.validated }}</b></a
>
</b-alert>
Expand Down

0 comments on commit 87b9c02

Please sign in to comment.