A Web API for the Corvallis Transit System.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
CorvallisBus.Core
CorvallisBus.Test
CorvallisBus.Web
.gitattributes
.gitignore
.travis.yml
Corvallis-Bus-Server.sln
README.md
license

README.md

Corvallis Bus Server

Build Status

The backend that powers the best apps for the Corvallis Transit System.

Prerequisites for running

.NET Core 2.1 SDK must be installed. Then you can run the following commands in the repo root directory:

# If you want to run tests
$ dotnet test CorvallisBus.Test

# Run the web app
$ cd CorvallisBus.Web
$ dotnet run

# Run the data init job locally by sending a POST request
$ curl -d {} localhost:57855/api/job/init

Purpose

To have a more convenient way to get real-time information about the free buses in Corvallis. Data from CTS is merged with data from Google Transit, with some convenient projections applied, and mapped into some easily-digestable JSON for different use cases.

Disclaimer

We assume no liability for any missed buses. Buses may be erratic in their arrival behavior, and we cannot control that.

API Documentation

Visit https://corvallisb.us/api for documentation.