This repo contains the Open Data Hub GBFS API
It's goal is to provide a single access point where Open Data Hub users can discover GBFS feeds and some metadata related to them.
A calls.http file with example calls is provided. To use it, you have to install the VSCode extension REST Client or something compatible
GET /v1/dataset -> application/json
Returns a map of available GBFS datasets by ID
{
"<dataset id>": {
"description": String,
"endpoint": String(URL),
"origin": String
"license": String
"metadata": JSON
},
...
dataset id
the unique identifier of the dataset used in other calls
description
A short description of the dataset
endpoint
URL that points to the raw GBFS zip file download
origin
Name of the data provider
license
SPDX license identifier under which the data is provided
medadata
A free form JSON that may provide additional information
For the most part, these are defined verbatim in the datasets.yml file
GET /v1/dataset/<dataset id> -> application/json
The same as this call but restricted to a specific dataset
docker-compose up
to start your local development environment
if you don't want to use docker, try
npm install
npm run dev
Datasets are configured in datasets.yml
This project is REUSE compliant, more information about the usage of REUSE in NOI Techpark repositories can be found here.
Since the CI for this project checks for REUSE compliance you might find it useful to use a pre-commit hook checking for REUSE compliance locally. The pre-commit-config file in the repository root is already configured to check for REUSE compliance with help of the pre-commit tool.
Install the tool by running:
pip install pre-commit
Then install the pre-commit hook via the config file by running:
pre-commit install