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)
- Host: GitHub
- URL: https://github.com/andmos/BikeshareClient
- Owner: andmos
- License: mit
- Created: 2018-06-04T12:37:55.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-01-08T04:24:21.000Z (over 1 year ago)
- Last Synced: 2025-04-17T22:59:07.225Z (10 days ago)
- Topics: bikeshare, bikeshare-systems, gbfs, netstandard
- Language: C#
- Size: 257 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 9
- Releases: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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"
GBFS is a standard backed by the North American Bike Share Association (NABSA).
Owner metadata
- Name: Andreas Mosti
- Login: andmos
- Email:
- Kind: user
- Description: DevOps preacher, engineer and occasional speaker. Currently working as software developer and platform engineer, @bekk
- Website: blog.amosti.net
- Location: Trondheim
- Twitter: amostii
- Company: @bekk
- Icon url: https://avatars.githubusercontent.com/u/1283556?u=03cd2e23ae823c209d2fe488bb7b96e82f6a7fb7&v=4
- Repositories: 146
- Last ynced at: 2024-06-11T15:34:37.321Z
- Profile URL: https://github.com/andmos
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 | 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
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
- Total packages: 2
-
Total downloads:
- nuget: 166,263 total
- Total dependent packages: 1 (may contain duplicates)
- Total dependent repositories: 0 (may contain duplicates)
- Total versions: 354
- Total maintainers: 1
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
- Microsoft.SourceLink.GitHub 1.1.1 development
- Newtonsoft.Json 13.0.1
- 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
- BikeshareClient 3.3.2
- Microsoft.Extensions.DependencyInjection.Abstractions 6.0.0
- Microsoft.Extensions.Http 6.0.0
- actions/checkout v3 composite
- mcr.microsoft.com/dotnet/sdk 7.0.102-bullseye-slim build
- andmos/dotnet-script latest build
Score: 16.046689870747077