A curated list of open technology projects to sustain a stable climate, energy supply, biodiversity and natural resources.

BikeshareClient

Dotnet library for integrating with GBFS bikeshare systems.
https://github.com/andmos/BikeshareClient

Category: Consumption
Sub Category: Mobility and Transportation

Keywords

bikeshare bikeshare-systems gbfs netstandard

Keywords from Contributors

measur transforms archiving compose observation reporting annotation numerics projection sharing

Last synced: about 19 hours ago
JSON representation

Repository metadata

C# client for General Bikeshare Feed Specification (GBFS)

README.md

BikeshareClient

Dotnet client for the General Bikeshare Feed Specification (GBFS).
Mainly used against Urban Infrastructure Partner, with Trondheim City Bike and Bergen City Bike.

For all available GBFS systems, see the system overview from the GBFS project.

Supports the required fields in the GBFS standard for now.

Basic Usage


// Create the client from a GBFS API URL.
IBikeshareClient client = new Client("http://gbfs.urbansharing.com/trondheim/gbfs.json");

// Or with an existing HTTPClient
IBikeshareClient client = new Client("http://gbfs.urbansharing.com/trondheim/gbfs.json", httpClient);

// All available stations, containing name, id, lat, long, address and capacity
var stations = await client.GetStationsAsync();

// All stations status, containing number of bikes and docks available, is renting, is returning etc.
var statuses = await client.GetStationsStatusAsync();

A simple dotnet-script test script for the client can be seen here.

Microsoft.Extensions.DependencyInjection integration

BikeshareClient can be registered to IServiceCollection by referencing the BikeshareClient.DependencyInjection NuGet package:

using BikeshareClient.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;

services.AddBikeshareClient("http://gbfs.urbansharing.com/trondheim/gbfs.json");

Build and testscript

Simple build:

docker run --rm -it -v $(pwd):/app mcr.microsoft.com/dotnet/sdk:7.0 dotnet pack app/src/BikeshareClient -o /app

Run test script:

docker run --rm -it -v $(pwd)/src/TestScript/:/scripts  andmos/dotnet-script main.csx "Skansen"

CI / CD

codecov

NuGet BikeshareClient

NuGet BikeshareClient.DependencyInjection

Dependabot Status

GBFS is a standard backed by the North American Bike Share Association (NABSA).


Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 7 days ago

Total Commits: 216
Total Committers: 4
Avg Commits per committer: 54.0
Development Distribution Score (DDS): 0.343

Commits in past year: 23
Committers in past year: 2
Avg Commits per committer in past year: 11.5
Development Distribution Score (DDS) in past year: 0.043

Name Email Commits
andmos a****i@g****m 142
dependabot[bot] 4****] 53
dependabot-preview[bot] 2****] 16
Runar Ovesen Hjerpbakk r****r@h****m 5

Committer domains:


Issue and Pull Request metadata

Last synced: 2 days ago

Total issues: 23
Total pull requests: 156
Average time to close issues: 27 days
Average time to close pull requests: 2 days
Total issue authors: 4
Total pull request authors: 4
Average comments per issue: 0.65
Average comments per pull request: 0.92
Merged pull request: 128
Bot issues: 1
Bot pull requests: 96

Past year issues: 0
Past year pull requests: 0
Past year average time to close issues: N/A
Past year average time to close pull requests: N/A
Past year issue authors: 0
Past year pull request authors: 0
Past year average comments per issue: 0
Past year average comments per pull request: 0
Past year merged pull request: 0
Past year bot issues: 0
Past year bot pull requests: 0

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/andmos/BikeshareClient

Top Issue Authors

  • andmos (19)
  • Sankra (2)
  • dependabot-preview[bot] (1)
  • mmalvik (1)

Top Pull Request Authors

  • dependabot[bot] (79)
  • andmos (58)
  • dependabot-preview[bot] (17)
  • Sankra (2)

Top Issue Labels

  • todo (2)
  • Breaking (1)

Top Pull Request Labels

  • dependencies (96)
  • .NET (52)
  • docker (22)
  • github_actions (1)

Package metadata

nuget.org: bikeshareclient

Dotnet client for bike share systems implementing the General Bikeshare Feed Specification (GBFS).

  • Homepage: https://github.com/andmos/BikeshareClient
  • Licenses: MIT
  • Latest release: 3.3.4 (published about 2 years ago)
  • Last Synced: 2025-04-26T14:02:02.061Z (2 days ago)
  • Versions: 277
  • Dependent Packages: 1
  • Dependent Repositories: 0
  • Downloads: 152,133 Total
  • Rankings:
    • Downloads: 3.657%
    • Average: 12.104%
    • Dependent repos count: 13.819%
    • Dependent packages count: 18.835%
  • Maintainers (1)
nuget.org: bikeshareclient.dependencyinjection

Dotnet client for bike share systems implementing the General Bikeshare Feed Specification (GBFS). Includeds extention for IServiceCollection.

  • Homepage: https://github.com/andmos/BikeshareClient
  • Licenses: MIT
  • Latest release: 3.3.8 (published about 2 years ago)
  • Last Synced: 2025-04-26T14:01:58.455Z (2 days ago)
  • Versions: 77
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 14,130 Total
  • Rankings:
    • Dependent repos count: 13.819%
    • Average: 16.423%
    • Downloads: 16.615%
    • Dependent packages count: 18.835%
  • Maintainers (1)

Dependencies

src/BikeshareClient/BikeshareClient/BikeshareClient.csproj nuget
  • Microsoft.SourceLink.GitHub 1.1.1 development
  • Newtonsoft.Json 13.0.1
src/BikeshareClient/TestBikeshareClient/TestBikeshareClient.csproj nuget
  • Microsoft.NET.Test.Sdk 17.2.0
  • Newtonsoft.Json 13.0.1
  • coverlet.msbuild 3.1.2
  • xunit 2.4.2
  • xunit.runner.visualstudio 2.4.5
src/BikeshareClient.DependencyInjection/BikeshareClient.DependencyInjection/BikeshareClient.DependencyInjection.csproj nuget
  • BikeshareClient 3.3.2
  • Microsoft.Extensions.DependencyInjection.Abstractions 6.0.0
  • Microsoft.Extensions.Http 6.0.0
.github/workflows/ci.yaml actions
  • actions/checkout v3 composite
Dockerfile docker
  • mcr.microsoft.com/dotnet/sdk 7.0.102-bullseye-slim build
src/TestScript/Dockerfile docker
  • andmos/dotnet-script latest build

Score: 16.046689870747077